- Added test to verify that non-standard major.minor only version will fail to parse if the PatchOptional option is not set.

This commit is contained in:
Steve Maillet 2016-04-04 11:05:36 -07:00
Родитель 825d9acbc2
Коммит cc42b0b6ae
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -160,6 +160,13 @@ namespace UnitTests
VerifyToStringReverseParse( ver );
}
[TestMethod]
[ExpectedException( typeof( FormatException ))]
public void StaticParseSimpleMajorMinorOnlyFailsIfNotEnabledTest( )
{
var ver = SemanticVersion.Parse( "2.1" );
}
[TestMethod]
public void StaticParseNumericIdentifier()
{