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 diagnose "TestFixtureSetUp Failed"

We use TeamCity as our CI server, and I've just started seeing "TestFixtureSetUp Failed" in the test failure window. Any …

nunit teamcity
The problem with NUnit and app.config

When i run a simple test on connection to DB check i receive an error in NUnit: [Test] public void …

visual-studio nunit app-config configurationmanager
Nunit testing with Mock. Instance of Interface

I have the following (simplified) code. public class Controller { private readonly IService _service; public Controller(IService service) { _service = service; } public …

c# mocking nunit moq simple-injector
MSTest Equivalent for NUnit's Parameterized Tests?

NUnit supports a feature where you can specify a set of data inputs for a unit test to be run …

c# unit-testing nunit mstest parameterized-unit-test
ExpectedException in nUnit gave me an error

I'm new to using Testing Tools on the .NET Framework, so I downloaded it from NuGet with help from ReSharper. …

c# .net unit-testing testing nunit
How to run unit tests in STAThread mode?

I would like to test an app that uses the Clipboard (WindowsForms) and I need the Clipboard in my unit …

c# nunit sta
Data-driven testing in NUnit?

In MSTest you can do something like: [TestMethod] [DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", "testdata.csv", "testdata#csv", DataAccessMethod.Sequential)] …

c# .net-4.0 nunit nunit-2.5 data-driven-tests
Setup Method With Params Array

I am developing tests for an application. There's a method that has a params array as a parameter. I have …

c# nunit moq
How to use TestCase in NUnit 2.5?

I have a Currency class which I persist to my database using NHibernate. Currency class looks like this: public class …

c# unit-testing nunit testcase
System.BadImageFormatException caused by NUnit project

Good day everyone. I have been having the same problem all day at work and am struggling to find any …

c# 64-bit nunit badimageformatexception