Top "Mstest" questions

Microsoft .NET Unit Testing Framework (MSTest)

In Visual Studio Test, how to make a playlist which automatically excludes certain tests?

Our team has Visual Studio 2012 Professional licenses (not Test Professional). We are developing a smallish web application, and we have …

unit-testing visual-studio-2012 mstest playlist
Are multiple asserts bad in a unit test? Even if chaining?

Is there anything wrong with checking so many things in this unit test?: ActualModel = ActualResult.AssertViewRendered() // check 1 .ForView("Index") // check 2 .…

c# unit-testing asp.net-mvc-2 mstest
Why must a ClassInitialize method be static?

I'm curious as to why the fixture setup must be static? It seems more intuitive to me to have instance …

visual-studio unit-testing mstest
Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=11.0.0.0'

I am using MSTest.TestAdapter and MSTest.TestFramework both version 1.2.0 for my MS tests unit tests. On my local machine (…

c# .net unit-testing mstest assembly-loading
Error when running unit tests in visual studio: Test-case objects missing

I'm getting the following error when running unit tests from visual studio using resharper: Test-case objects missing for the following …

c# .net visual-studio resharper mstest
How slow is too slow for unit tests?

Michael Feathers, in Working Effectively With Legacy Code, on pages 13-14 mentions: A unit test that takes 1/10th of a …

unit-testing performance mstest
Forcing MSTest to use a single thread

Given this test fixture: [TestClass] public class MSTestThreads { [TestMethod] public void Test1() { Trace.WriteLine(Thread.CurrentThread.ManagedThreadId); } [TestMethod] public void …

visual-studio unit-testing mstest
How to mock/fake SmtpClient in a UnitTest?

I want to use it to fake System.Net.Mail.SmtpClient in a MS-Test UnitTest. Therefor I added a Fakes …

c# mstest microsoft-fakes
Unit test exception messages with xUnit

I'm currently converting my MsTest unit tests to xUnit. With xUnit, is there a way to test exception messages? Is …

unit-testing mstest xunit
Unit Test Adapter threw exception: Unable to load one or more of the requested types

I am attempting to run SpecFlow tests from the Visual Studio 2010 Command Prompt, and I am getting a rather obtuse …

visual-studio-2010 mstest specflow