public void Measurer_Test() { TimeMeasurer _timeMeasurer = new TimeMeasurer(); _timeMeasurer.Start(); _timeMeasurer.Stop(); if(_timeMeasurer.AverageTime != null && _timeMeasurer.AverageTime.HasValue) { Assert.LessOrEqual(0, _timeMeasurer.AverageTime.Value); } _timeMeasurer.Reset(); Assert.IsNull(_timeMeasurer.AverageTime); }
public void Constructor_Test() { TimeMeasurer _timeMeasurer = new TimeMeasurer(); Assert.IsNotNull(_timeMeasurer); Assert.IsNull(_timeMeasurer.AverageTime); }