Exemplo n.º 1
0
 public void ClearShouldClearTestsInList()
 {
     var testMock = new Mock<ITest>();
     var testList = new TestList(processContextMock.Object);
     testList.AddTest(testMock.Object);
     testList.Clear();
     testMock.Verify(t => t.Clear());
 }
Exemplo n.º 2
0
 public void ClearShouldClearList()
 {
     var testMock = new Mock<ITest>();
     var testList = new TestList(processContextMock.Object);
     testList.AddTest(testMock.Object);
     Assert.That(testList.Tests.Count() == 1);
     testList.Clear();
     Assert.That(!testList.Tests.Any());
 }