public void TestTimespanToTimespan02() { var stopwatch = Startwatch.FromTimeSpan(new TimeSpan(0, 0, 35)); Assert.AreEqual(new TimeSpan(0, 0, 35), stopwatch.Elapsed); }
public void TestTimespanToTimespan03() { var stopwatch = Startwatch.FromTimeSpan(new TimeSpan(0, 0, 0, 5, 150)); AssertTimespansClose(new TimeSpan(0, 0, 0, 5, 150), stopwatch.Elapsed); }
public void TestTimespanToMilliseconds03() { var stopwatch = Startwatch.FromTimeSpan(new TimeSpan(0, 0, 0, 5, 150)); AssertMillisecondsClose(new TimeSpan(0, 0, 0, 5, 150).TotalMilliseconds, stopwatch.ElapsedMilliseconds); }