public void TestCounterReset() { c = new Counter(); c.Next(); c.Reset(); Assert.AreEqual(0, c.Count, "Counter should be 0 after resetted"); }
public void Tick() { _seconds.Next(); if (_seconds.Count >= 60) { _seconds.Reset(); _minutes.Next(); } if (_minutes.Count >= 60) { _minutes.Reset(); _hours.Next(); } if (_hours.Count >= 24) { _hours.Reset(); } }