Top "Mstest" questions

Microsoft .NET Unit Testing Framework (MSTest)

How do I use Assert to verify that an exception has been thrown?

How do I use Assert (or other Test class?) to verify that an exception has been thrown?

c# unit-testing mstest assert vs-unit-testing-framework
Entity Framework Provider type could not be loaded?

I am trying to run my tests on TeamCity which is currently installed on my machine. System.InvalidOperationException: The Entity …

c# entity-framework mstest teamcity-7.1 entity-framework-6
How can we run a test method with multiple parameters in MSTest?

NUnit has a feature called Values, like below: [Test] public void MyTest( [Values(1,2,3)] int x, [Values("A","B")] string s) { // ... } …

c# unit-testing nunit mstest vs-unit-testing-framework
How can I write output from a unit test?

Any call in my unit tests to either Debug.Write(line) or Console.Write(Line) simply gets skipped over while …

c# visual-studio unit-testing debugging mstest
NUnit vs. MbUnit vs. MSTest vs. xUnit.net

There are quite a lot of unittesting frameworks out there for .NET. I found this little feature comparison: http://xunit.…

unit-testing nunit mstest mbunit xunit.net
Unit Testing: DateTime.Now

I have some unit tests that expects the 'current time' to be different than DateTime.Now and I don't want …

c# unit-testing datetime mstest systemtime
How to compare Lists in Unit Testing

How can this test fail? [TestMethod] public void Get_Code() { var expected = new List<int>(); expected.AddRange(new [] { 100, 400, 200, 900, 2300, 1900 }); …

c# visual-studio-2010 unit-testing mstest
What would be an alternate to [TearDown] and [SetUp] in MSTest?

When I use MSTest Framework, and copy the code that Selenium IDE generated for me, MSTest doesn't recognize [TearDown] and […

c# selenium automated-tests mstest
Problems with DeploymentItem attribute

I'm currently maintaining an "old" system written in C#.net, removing some obsolete features and doing some refactoring. Thanks god, …

c# visual-studio unit-testing mstest deploymentitem