public void TestElapsedFormat(long millis, string format, string expected) { var sw = new Stopwatch(); SetElapsedTime(sw, millis); var actual = sw.ElapsedFormat(format); actual.Should().Be(expected); }