public void Stopwatch_HighResolution() { var c = new VirtualTimeClock(); var sw = new MyStopwatch(c); sw.Start(); c.Now += 1000; Assert.AreEqual(1000, sw.ElapsedTicks); Assert.AreEqual(2000, sw.Elapsed.Ticks); }
public void RunSolution() { ChangeMade = false; Counter++; MyStopwatch.Start(); List <Cell> resultCells = FindApplicableCells(); if (ApplyAlgorithmOnCells(resultCells)) { ChangeMade = true; ApplyRippleEffects(resultCells); } MyStopwatch.Stop(); }