public void the_counts_are_same_for_root() { var item = _projection.GetRuntimeCallTimingsFor("TestRoot"); Assert.AreEqual(_counts[0].AverageTime, item.AverageTime); Assert.AreEqual(_counts[0].AverageTimeUnder, item.AverageTimeUnder); Assert.AreEqual(_counts[0].MaxTime, item.MaxTime); Assert.AreEqual(_counts[0].MaxTimeUnder, item.MaxTimeUnder); Assert.AreEqual(_counts[0].MinTime, item.MinTime); Assert.AreEqual(_counts[0].MinTimeUnder, item.MinTimeUnder); Assert.AreEqual(_counts[0].TimesCalled, item.TimesCalled); }
public void count_information_is_updated_for_test() { var counts = projection.GetRuntimeCallTimingsFor("TESTNAME"); Assert.AreEqual(0, counts.TimesCalled); Assert.AreEqual(0, counts.TotalTime); Assert.AreEqual(0, counts.TotalTimeUnder); }
public void Setup() { var filename = Path.GetTempFileName(); var info = new TestRunInformation { Name = "TESTNAME", TestChain = TestData.BuildChainWithPrefix("Test") }; _projection = new CouplingCountAndNameProjection(); _projection.Index(info); _projection.SnapShotTo(filename, 2048); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestRoot")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild1")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild2")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild3")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestGrandChild")); _projection = new CouplingCountAndNameProjection(); position = _projection.LoadFromSnapshot(filename); }
public void Setup() { var filename = Path.GetTempFileName(); var info = new TestRunInformation { Name = "TESTNAME", TestChain = TestData.BuildChainWithPrefix("Test") }; _projection = new CouplingCountAndNameProjection(); _projection.Index(info); _projection.SnapShotTo(filename, 2048); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestRoot")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild1")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild2")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestChild3")); _counts.Add(_projection.GetRuntimeCallTimingsFor("TestGrandChild")); _projection = new CouplingCountAndNameProjection(); position = _projection.LoadFromSnapshot(filename); }
public void the_test_method_is_called_once() { Assert.AreEqual(1, projection.GetRuntimeCallTimingsFor("TestRoot").TimesCalled); }