My question is about the way .net running test methods. Let's say that I have a test class like this:
[TestClass]
public class MyTestClass
{
[TestMethod]
public void Test1()
{
...
}
[TestMethod]
public void Test2()
{
...
}
}
Question is does .net create an instance per each of these test methods? or it will create just one instance of MyTestClass and will run all the test methods over the same instance?
Aucun commentaire:
Enregistrer un commentaire