Top "Nunit" questions

NUnit is an open source unit testing framework for .NET and Silverlight written in C#. It serves the same purpose as JUnit or TestNG does in the Java world, and is one of many in the xUnit family.

How to use Fluent Assertions to test for exception in inequality tests?

I'm trying to write a unit test for a greater than overridden operator using Fluent Assertions in C#. The greater …

c# unit-testing lambda nunit fluent-assertions
Using MS Test ClassInitialize() and TestInitialize() in VS2010 as opposed to NUnit

I've used NUnit with VS2008, and now am adapting to MSTest on VS2010. I used to be able to create …

nunit mstest
Visual Studio 2012 MSTest vs NUnit pros and cons

We have to decide which technology to use for our unit testing. Currently we use Visual Studio 2010 and not happy …

visual-studio-2012 nunit mstest
Using Moq to verify calls are made in the correct order

I need to test the following method: CreateOutput(IWriter writer) { writer.Write(type); writer.Write(id); writer.Write(sender); // many …

c# unit-testing nunit moq sequential
How to use Rhino.Mocks AssertWasCalled() correctly?

I call _mocks.ReplayAll(), then one or more _mockedObject.AssertWasCalled() and then _mocks.VerifyAll(). But it tells me that "This …

c# nunit rhino-mocks assert
NUnit comparing two lists

OK so I'm fairly new to unit testing and everything is going well until now. I'm simplifying my problem here, …

c# nunit generic-list
Testing if a collection contains objects based on a particular property

I'm using NUnit 2.5.7. I want to test whether a collection of custom objects of a particular class contains certain objects, …

c# unit-testing collections nunit nunit-2.5
NUnit TestCase with Generics

Is there any way to pass generic types using a TestCase to a test in NUnit? This is what I …

c# unit-testing generics nunit testcase
How do I put new List<int> {1} in an NUNIT TestCase?

I have the method: public static int Add(List<int> numbers) { if (numbers == null || numbers.Count == 0) return 0; if (…

c# tdd nunit testcase
How do I install NUnit 3 console on Windows and run tests?

I want to run tests from a console like this (being in any directory, the DLL file can be for …

c# unit-testing nunit nunit-3.0 nunit-console