Tag Archives: NUnit

How to write an NUnit Addin

From version 2.2.x NUnit supports AddIns. Addins can customize NUnit’s internal behavior such as the creation of tests and their execution. An Addin should to implement the interface NUnit.Core.Extensibility.IAddin, which can be found in the assembly nunit.core.interfaces. Also the NUnit.Core.Extensibility.NUnitAddinAttribute … Continue reading

Posted in .Net, Miscellaneous, Unit Testing | Tagged , , , , | 1 Comment

Debugging NUnit Tests in Visual Studio 2010

If you are using NUnit with .Net 4.0 assemblies in Visual Studio 2010, while debugging, you will get this warning from breakpoints locations, “The breakpoint will not currently be hit. No symbols have been loaded for this document” This issues … Continue reading

Posted in .Net, .Net 4.0, Unit Testing, Visual Studio, Windows 7 | Tagged , , , , , | Leave a comment

How to unit test asynchronous callbacks

The current project I am working, we are following TDD (Test Driven Development). Today I got a problem; I need write a unit test for verifying an asynchronous callback. I need to invoke the method and need to wait for … Continue reading

Posted in .Net, .Net 3.0 / 3.5, .Net 4.0, Unit Testing, Visual Studio | Tagged , , , , , | Leave a comment

How to compare equality between two objects in NUnit

Today I faced an issue while unit testing; I have to compare equality of two list objects(using Assert.AreEqual), but it didn’t worked as I am expected. So changed the logic and tried with object.Equals combination with Assert.IsTrue() but that also … Continue reading

Posted in .Net, .Net 3.0 / 3.5, .Net 4.0, Unit Testing | Tagged , , , , | Leave a comment

How to do code coverage with NUnit tests

In this post I am talking about using Visual Studio code coverage tools to find code coverage with NUnit tests. In my current project we were using NUnit to write unit test cases. Now only we are started moving the … Continue reading

Posted in .Net, Unit Testing, Visual Studio | Tagged , , , | 1 Comment