public void updates_count_when_removing_a_sample() { var count = new CountsAndTimes(); count.ProcessNewEntry(new CallChain("TEST", "TESTR", 3) { StartTime = 0, EndTime = 10 }); count.RemoveEntry(new CallChain("TEST", "TESTR", 3) { StartTime = 0, EndTime = 10 }); Assert.AreEqual(0, count.TimesCalled); }
public void updates_avg_when_removing_a_sample() { var count = new CountsAndTimes(); count.ProcessNewEntry(new CallChain("TEST", "TESTR", 3) { StartTime = 0, EndTime = 10 }); count.RemoveEntry(new CallChain("TEST", "TESTR", 3) { StartTime = 0, EndTime = 10 }); Assert.AreEqual(double.NaN, count.AverageTime); }