mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-21 18:52:36 +01:00
Work on unit tests
This commit is contained in:
parent
d821a9988a
commit
97ef3d7c4e
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user