public void StartStop() { var stopWatch = new StopWatch(new DummyRepository()); Assert.AreEqual(0, stopWatch.GetLog().Length); stopWatch.Start(1); Assert.AreEqual(0, stopWatch.GetLog().Length); stopWatch.Start(1); Assert.AreEqual(1, stopWatch.GetLog().Length); stopWatch.Start(2); Assert.AreEqual(2, stopWatch.GetLog().Length); stopWatch.Stop("Done"); Assert.AreEqual(3, stopWatch.GetLog().Length); stopWatch.Delete(stopWatch.GetLog()[0]); Assert.AreEqual(2, stopWatch.GetLog().Length); stopWatch.Delete(stopWatch.GetLog()[0]); Assert.AreEqual(1, stopWatch.GetLog().Length); stopWatch.Delete(stopWatch.GetLog()[0]); Assert.AreEqual(0, stopWatch.GetLog().Length); }