I have this auto generated test project from VS2010 to my winform application Form1 and the method i want to test is juat an int add(int x, int y) method:
[TestClass()]
public class Form1Test
{
private TestContext testContextInstance;
public TestContext TestContext
{
get
{
return testContextInstance;
}
set
{
testContextInstance = value;
}
}
[TestMethod()]
public void addTest()
{
Form1 target = new Form1(); // TODO: Passenden Wert initialisieren
int x = 0; // TODO: Passenden Wert initialisieren
int y = 0; // TODO: Passenden Wert initialisieren
int expected = 0; // TODO: Passenden Wert initialisieren
int actual;
actual = target.add(x, y);
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
}
but when i go run tests, i see the test is running but nothing happens, i can´t even shut down or interrupt anything. What could be the problem or what is missing in my testproject??
Edit1: In debug mode the breakpoints can´t be reached because no symbols are loaded, and the call stack is empty
Edit2: When opening and running the same solution with tests in VS2012 everything works but not in VS2010
Edit3: Seems like i always got an exception when trying to run th tests: “lost connection to the controller”
Update – After installing VS2010 SP1 now the tests run
Update: Somehow the problem fixed itself by installing the VS2010 SP1. After that everything worked.