Top "Mstest" questions

Microsoft .NET Unit Testing Framework (MSTest)

Can MsTest unit tests be grouped in categories

In MbUnit one can do something like this: [Test] [TestCategory("Bad Arguments")] [TestCategory("Fast")] [ExpectedException(typeof(ArgumentNullException))] public void TestCopyWithBadHref() { . . . } …

unit-testing mstest mbunit
Running MSTest UnitTests using a MSBuild Script

Could you please guide me how to run MSTest unit tests using an MSBuild script.

.net msbuild mstest msbuild-task vs-unit-testing-framework
Code Coverage Results periodically gives: Empty results generated

I've run into a recurring problem with a few different projects using MSTest in VS2012, where every now and then …

visual-studio unit-testing code-coverage mstest vs-unit-testing-framework
TestContext is null when it is accessed from base class's virtual method

I have a base class ScriptBase which has a virtual function called MyTestInitialize(). When I call MyTestInitialize() from derived class, …

c# automated-tests mstest ui-testing
Unit Test configuration for ASP.NET application

This is my first test for Asp.Net Web Application. We have an Engine consisting of several modules. I need …

c# asp.net visual-studio-2008 mstest webtest
How to exclude classes from an OpenCover report

In generating coverage reports with OpenCover (and then generating an HTML report with ReportGenerator) for an MSTest suite, I am …

c# unit-testing mstest opencover reportgenerator
What's the alternative to use Thread.Sleep when working with Selenium in system testing?

I have a TestMethod using Selenium as below: [TestMethod] public void ShouldSendPasswordReminder() { // go to loginregister url _fireFoxWebDriver.Navigate().GoToUrl(UkPaBaseUrl + "…

c# unit-testing selenium mstest system-testing
Inherited test class from generic base is ignored in MSTest

When creating a generic base test class in MSTest, and inheriting from it, I'm unable to run the tests of …

c# visual-studio unit-testing mstest resharper-5.1
How do I write context/specification style unit tests with an MSTest/xUnit framework?

I have been using MSpec to write my unit tests and really prefer the BDD style, I think it's a …

c# unit-testing mstest bdd mspec
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