Work on unit tests

This commit is contained in:
Nikolaj Olsson 2024-08-20 13:02:40 +02:00
parent d821a9988a
commit 97ef3d7c4e

View File

@ -60,6 +60,23 @@ namespace Test.Logic
Assert.AreEqual(ms, new TimeSpan(0, 1, 2, 3, 999).TotalMilliseconds);
}
[TestMethod]
public void TimeCodeParseToMilliseconds2()
{
var ms = TimeCode.ParseToMilliseconds("01:02:03:9");
Assert.AreEqual(ms, new TimeSpan(0, 1, 2, 3, 900).TotalMilliseconds);
}
[TestMethod]
public void TimeCodeParseToMilliseconds3()
{
var ms = TimeCode.ParseToMilliseconds("01:02:03:99");
Assert.AreEqual(ms, new TimeSpan(0, 1, 2, 3, 990).TotalMilliseconds);
}
[TestMethod]
public void TimeCodeGetTotalMilliseconds()
{