Пример #1
0
 public void IsValidVersion_returns_true_for_valid_versions()
 {
     Assert.True(CsdlVersion.IsValidVersion(new Version(1, 0, 0, 0)));
     Assert.True(CsdlVersion.IsValidVersion(new Version(1, 1, 0, 0)));
     Assert.True(CsdlVersion.IsValidVersion(new Version(2, 0, 0, 0)));
     Assert.True(CsdlVersion.IsValidVersion(new Version(3, 0, 0, 0)));
 }
Пример #2
0
 public void IsValidVersion_returns_false_for_invalid_versions()
 {
     Assert.False(CsdlVersion.IsValidVersion(null));
     Assert.False(CsdlVersion.IsValidVersion(new Version(0, 0, 0, 0)));
     Assert.False(CsdlVersion.IsValidVersion(new Version(4, 0, 0, 0)));
     Assert.False(CsdlVersion.IsValidVersion(new Version(3, 0)));
     Assert.False(CsdlVersion.IsValidVersion(new Version(2, 0, 0)));
 }