예제 #1
0
        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());
        }
예제 #2
0
        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));
        }