public void StrictParse_ShouldThrowExceptionOnInvalidInput() { Assert.ThrowsException <ArgumentException>(() => VersionParser.StrictParse("14.5")); Assert.ThrowsException <ArgumentException>(() => VersionParser.StrictParse("14")); }
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)); }