public void ValidateVersion_EqualToMinimumTest() { VersionRequirement vr; PackageVersion pv; // // Prepare the test. // vr = new VersionRequirement(); vr.MinVersion = new PackageVersion("1.0.0"); pv = new PackageVersion("1.0.0"); // // Run the test. // vr.ValidateVersion(pv, "x"); // // Validation is via exception or not. // }
public void ValidateVersion_GreaterThanVersionTest() { VersionRequirement vr; PackageVersion pv; // // Prepare the test. // vr = new VersionRequirement(); vr.Version = new PackageVersion("1.0.0"); pv = new PackageVersion("1.9.5"); // // Run the test. // vr.ValidateVersion(pv, "x"); // // Validation is via exception or not. // }