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