This commit is contained in:
@@ -22,6 +22,19 @@ namespace BritishHorseRacingApi.Tests
|
||||
Assert.Equal(milliseconds, timeSpan.Milliseconds);
|
||||
}
|
||||
|
||||
[Theory()]
|
||||
[InlineData("", null)]
|
||||
[InlineData(null, null)]
|
||||
[InlineData(" ", null)]
|
||||
public void TestStopWatchStringConversionForEmpty(string time, double? expectedValue)
|
||||
{
|
||||
//Arrange
|
||||
//Act
|
||||
var totalMilliseconds = DataConverterHelper.StopWatchStringToMilliseconds(time);
|
||||
//Assert
|
||||
Assert.Equal(totalMilliseconds, expectedValue);
|
||||
}
|
||||
|
||||
[Theory()]
|
||||
[InlineData("1m 1f 104y", 2084)]
|
||||
[InlineData("1f 104y", 324)]
|
||||
|
||||
Reference in New Issue
Block a user