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.

Moq fake one method but use real implementation of another

Given an interface IService that has Method1() and Method2(). I want to test that when Method1() throws an Exception, Method2() …

c# .net unit-testing nunit moq
How do I test database-related code with NUnit?

I want to write unit tests with NUnit that hit the database. I'd like to have the database in a …

c# database unit-testing tdd nunit
xUnit framework: Equivalent of [TestFixtureSetUp] of NUnit in XUnit?

What is xUnit's equivalent of NUnit's [TestFixtureSetUp]? We have explored and found that IUseFixture<T> is the equivalent …

nunit xunit
where did NUnit Gui Runner go? version 3.0.1

I just upgraded to version 3.0.1 from nunit 2.6.4. It used to have a NUnit Gui Runner, located here: After installing 3.0.1 (which …

nunit
NUnit cannot recognise a TestCase when it contains an array

This is quite simple but annoying behaviour I am running into with NUnit: I have some tests like this: [Test] […

c# unit-testing nunit testcase
How to press "Enter" in Selenium WebDriver (Nunit Test Case) written in C#?

I am trying to create a automation framework with nunit + Selenium + c# Our webadmin is based on Devexpress framework hence …

c# nunit selenium-webdriver enter
Nunit async test exception assertion

[Edit (May 2020)] - This issue has been reportedly addressed in newer releases of NUnit. Please see Nunit.ThrowsAsync. (Ref this …

c# nunit async-await
WatiN System.IO.FileNotFoundException Interop.SHDocVw

I have just started to receive the following error when running my WatIn tests. System.IO.FileNotFoundException : Could not load …

.net nunit watin
Unit testing the app.config file with NUnit

When you guys are unit testing an application that relies on values from an app.config file? How do you …

.net unit-testing nunit
NUnit parameterized tests with datetime

Is it not possible with NUnit to go the following? [TestCase(new DateTime(2010,7,8), true)] public void My Test(DateTime startdate, …

unit-testing nunit