Top "Mstest" questions

Microsoft .NET Unit Testing Framework (MSTest)

Where is the "Create Unit Tests" selection?

I have installed the new Visual Studio 2012 Ultimate. I have created a Test Project with my solution and it contains …

.net unit-testing visual-studio-2012 visual-studio-2013 mstest
Why does TestInitialize get fired for every test in my Visual Studio unit tests?

I'm using Visual Studio 2010 Beta 2. I've got a single [TestClass], which has a [TestInitialize], [TestCleanup] and a few [TestMethods]. Every …

c# visual-studio visual-studio-2010 mstest vs-unit-testing-framework
How can I get "Copy to Output Directory" to work with Unit Tests?

When I build a unit test project before the tests are executed the test output is copied to a TestResults …

c# .net visual-studio-2008 unit-testing mstest
How do I check "no exception occurred" in my MSTest unit test?

I'm writing a unit test for this one method which returns "void". I would like to have one case that …

c# unit-testing exception mstest
MSTest: No tests are run because no tests are loaded or the selected tests are disabled

I have a c# solution with the following structure: mySolution myProject myProject.MSTests References Microsoft.VisualStudio.QualityTools.UnitTestFramework sutMSTests.cs …

c# unit-testing mstest vs-unit-testing-framework
Visual Studio 2013 MSTest vs NUnit

My company is upgrading our Visual Studio 2012 to 2013 Premium. In the midst of this, we are also looking to start …

visual-studio unit-testing nunit visual-studio-2013 mstest
Ignore IgnoreAttribute

We have MSTest tests which automatically run in hourly production. One of these tests is marked with [Ignore] attribute because …

c# mstest resharper-5.1
Stepping through and debugging code in Unit tests

I have not been able to debug or step through unit test. Here is my sample test code... using System; …

c# visual-studio unit-testing mstest
Can I use mstest.exe without installing Visual Studio?

I want to use mstest.exe to run my unit test on build server, but I don't want to install …

visual-studio mstest build-server
Understanding the MSTest TestContext

Using MSTest, I needed to obtain the name of the current test from within the [TestInitialize] method. You can get …

c# mstest testcontext