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.

NUnit.Framework.Assert.IsInstanceOfType() is obsolete

I'm currently reading the book Professional Enterprise .NET and I've noticed this warning in some of the example programs: 'NUnit.…

c# nunit
NUnit's Assert.Equals throws exception "Assert.Equals should not be used for assertions"

I recently attempted to use the method Assert.Equals() when writing a new NUnit test. Upon execution this method throws …

.net nunit
Selenium 2.0 WebDriver Advcanced Interactions DoubleClick Help (c#)

So within my selenium regression tests, I've been trying to double click on a calendar to make a new appt. …

c# selenium nunit webdriver double-click
Resharper runs UnitTest from different location

When I run unit tests with Visual Studio it works fine, because it runs from project directory where all assemblies …

unit-testing visual-studio-2012 nunit resharper .net-assembly
NUnit - cleanup after test failure

We have some NUnit tests that access the database. When one of them fails it can leave database in inconsistent …

.net nunit nunit-2.5
Testing for exceptions in async methods

I'm a bit stuck with this code (this is a sample): public async Task Fail() { await Task.Run(() => { throw …

c# async-await nunit fluent-assertions
NUnit vs Visual Studio 2010's MSTest?

I realise that there are many older questions addressing the general question of NUnit v MSTest for versions of Visual …

visual-studio-2010 visual-studio nunit mstest cruisecontrol.net
Test events with nunit

I'm just starting with TDD and could solve most of the problems I've faced on my own. But now I'm …

c# unit-testing events nunit c#-2.0
Run NUnit tests in .NET Core

I am trying to run unit tests for my C# project with .NET Core. I am using a Docker container …

c# .net unit-testing nunit asp.net-core-1.0
Is there a free Visual Studio addin for Nunit?

I'm cheap and don't want to pay for ReSharper or TestDriven.NET, is there a free visual Studio addin for …

visual-studio unit-testing nunit