Simple project in Visual Studio 2012 is causing the following error when trying to load the test explorer:
------ Discover test started ------
Exception has been thrown by the target of an invocation.
========== Discover test finished: 1 found (0:00:00.152) ==========
This is my test project:
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace MyApp
{
[TestClass]
public class MyTests
{
[TestMethod]
public void Test()
{
var foo = 1;
Assert.AreEqual(1, foo);
}
}
}
The test explorer is not discovering my tests for some reason. Its probably down to the exception being raised at the top of my question. Does anyone know if this is a bug in Visual Studio 2012. Can't understand why something so simple is blowing it up?!?
After installing SP3 for Visual Studio 2012, the error seemed to disappear.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With