Beispiel #1
0
 public void TestCleanup()
 {
     // Ensure that the object reference is set to null so any actual instance
     // can be garbage collected.
     User = null;
 }
Beispiel #2
0
 public void TestInitialize()
 {
     // A new instance of the class is created for every test case.
     // This is therefore part of each test cases "Arrange" section.
     User = new TestedClass("test", "test", "test");
 }