예제 #1
0
 public void StrictParse_ShouldThrowExceptionOnInvalidInput()
 {
     Assert.ThrowsException <ArgumentException>(() => VersionParser.StrictParse("14.5"));
     Assert.ThrowsException <ArgumentException>(() => VersionParser.StrictParse("14"));
 }
예제 #2
0
 public void StrictParse_ShouldParse()
 {
     VersionParser.StrictParse("v14.5.8").ShouldBe(new Version(14, 5, 8));
     VersionParser.StrictParse("14.5.8").ShouldBe(new Version(14, 5, 8));
 }