예제 #1
0
 private void ValidatePackageVersion(string packageVersion)
 {
     if (!_packageVersionValidator.IsValidPackageVersion(packageVersion))
     {
         throw new InvalidPackageVersionException(packageVersion);
     }
 }
예제 #2
0
 public void ShouldNotAllowNullOrEmptyStrings(string version)
 {
     Assert.IsFalse(_validator.IsValidPackageVersion(version), "PackageVersion of {0} should not validate.", version);
 }