- 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:
Родитель
825d9acbc2
Коммит
cc42b0b6ae
|
@ -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()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче