public void Translate_Versions(WindowsVersions exptectedVersion, string versionStr) { IVersionTranslator translator = new WindowsVersionTranslator(); string v = translator.Translate(new OperatingSystemDependencyVersion("windows", DependencyVersionParser.Parse(versionStr, false))); Assert.True(v == exptectedVersion.ToString()); }
public void Translate_WindowsVersions(WindowsVersions version, string expectedVersion) { IVersionTranslator translator = new WindowsVersionTranslator(); DependencyVersion v = translator.Translate(version.ToString()); Assert.True(v >= DependencyVersionParser.Parse(expectedVersion, false)); }