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.

Using Console.Out.WriteLine vs Trace.WriteLine in nUnit either running in isolation or within reSharper or TeamCity

I vaguely remember reading "something" "somewhere" about using Trace.WriteLine over Console.Out.WriteLine in nUnit possibly in the context …

.net nunit resharper teamcity trace
NUnit TestCaseSource

I'm having a go with the TestCaseSource attribute. One problem: when the sourceName string is invalid, the test just gets …

c# nunit testcasesource
Setup a complicated row test with nunit and TestCaseSource and TestCaseData

For every expect return value like 2 or 4 I want to pass this value as parameter for the unit test method. …

nunit testcasesource testcasedata
ConfigurationManager.GetSection(sectionName) returns null while performing unit tests

I have a unit tests project with it's own app.config file, which is a mock of a real configuration …

c# .net configuration nunit configurationmanager
Mocking HttpSessionState in ASP.net for nunit testing

I've see n a lot of discussions surrounding HttpSessionState and asp.net MVC. I'm trying to write tests for an …

asp.net nunit rhino-mocks
How to Unit Test HtmlHelper with Moq?

Could somebody show me how you would go about creating a mock HTML Helper with Moq? This article has a …

asp.net-mvc unit-testing nunit moq html-helper
Unsupported test framework error in NUnit

I am using NUnit testing with Visual Studio 2013. We are using NUnitTestAdapter for integration of test run of NUnit with …

c# visual-studio-2013 nunit nunittestadapter
How do I get nunit3-console to output my debug to screen (on a Windows box)?

I have used NUnit to run my C# unit tests successfully within Visual Studio 2013, with the NUnit GUI and with …

c# nunit nunit-console
Is there anything I can do in NUnit that I can't do in MSTest?

This question has been asked in various forms in a number of different forums, but, IMHO, I haven't been able …

nunit mstest