Top "Nunit-3.0" questions

Questions related with NUnit version 3.0, for Unit Testing.

NUnit 3.0 and Assert.Throws

I am writing some unit tests with NUnit 3.0 and, unlike v2.x, ExpectedException() has been removed from the library. Based …

c# unit-testing nunit nunit-3.0
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
NUnit 3: Forbid tests to run in parallel

I have the latest NUnit(3.2.0) installed and I have all my tests run in parallel. It might look like desirable …

c# nunit nunit-3.0
NUnit3: Assert.Throws with async Task

I am trying to port a test to NUnit3 and am getting a System.ArgumentException : 'async void' methods are not …

c# asynchronous nunit nunit-3.0
How to install nUnit 3 nunit3-console.exe in TeamCity 9.x

NUnit 3.0 is supported by TeamCity 9.1.x now however you have to install the runner and specify the path to the …

teamcity nunit-3.0
How to fix Could not load file or assembly 'nunit.engine, Version=3.7.0.0

I have a webappliction with a separate test-project using NUnit to run unittests. When my test-project is trying to discover …

c# visual-studio nunit nunit-3.0
Unit Tests failing when I Run All Tests but pass when I Debug

I'm using NUnit3 in Visual Studio 2017 and doing TDD. Something really strange is happening since I updated my code to …

c# visual-studio unit-testing nunit nunit-3.0
view code coverage report on azure devops portal

I am running the NUnit tests (project in .Net Framework 4.5), as part of azure devops build pipeline. - task: VSTest@2 …

azure azure-devops azure-pipelines asp.net-4.5 nunit-3.0
Error `Async test method must have non-void return type` when upgrading from NUnit 2 to NUnit 3

I have to refactor am unit test from NUNIT 2 to NUNIT 3 and the following syntax throws an error: var expectedResponseMessage = …

c# async-await nunit-3.0
Increase readability to assert IsNotNullOrEmpty with constraint-based asserts

I'm currently rewriting some unit tests to use NUnit 3 instead of NUnit 2 and need to change some asserts to contraint-based …

c# unit-testing nunit nunit-3.0