Top "Mstest" questions

Microsoft .NET Unit Testing Framework (MSTest)

Why does Assert.IsInstanceOfType(0.GetType(), typeof(int)) fail?

I'm kind of new to unit testing, using Microsoft.VisualStudio.TestTools.UnitTesting; The 0.GetType() is actually System.RuntimeType, so what …

c# unit-testing mstest
Do MSTest deployment items only work when present in the project test settings file?

I can't seem to grasp how MSTest deployment items are supposed to be configured. I have been able to get …

unit-testing visual-studio-2010 mstest deploymentitem
Add custom message to unit test result

Is there a way I can add a custom message to the result of a test method? I want to …

c# visual-studio-2010 unit-testing mstest
VS 2010 Test Runner error "The agent process was stopped while the test was running."

In Visual Studio 2010, I have a number of unit tests. When I run multiple tests at one time using test …

visual-studio-2010 visual-studio unit-testing mstest
How do I enforce exception message with ExpectedException attribute

I thought these two tests should behave identically, in fact I have written the test in my project using MS …

c# unit-testing nunit mstest expected-exception
Writing Unit Tests: How to get folder with testfiles programmatically

I am writing unit tests in visual studio 2010. For test some functionality, I have added a folder with testfiles. I …

c# visual-studio unit-testing directory mstest
How does Assert.AreEqual determine equality between two generic IEnumerables?

I have a unit test to check whether a method returns the correct IEnumerable. The method builds the enumerable using …

c# unit-testing ienumerable mstest assert
Why does Visual Studio create a new .vsmdi file?

If I open a solution in Visual Studio 2008 and run a unit test then VS creates a new .vsmdi file …

visual-studio-2010 visual-studio visual-studio-2008 mstest
MsTest ClassInitialize and Inheritance

I have a base class for my tests which is composed in the following way: [TestClass] public abstract class MyBaseTest { …

c# mstest