Exemple #1
0
        public void Skip_EarlierVersion()
        {
            var osSkipAttribute = new OSMinVersionAttribute(
                OperatingSystems.Windows,
                new Version("3.0"),
                OperatingSystems.Windows,
                new Version("2.5"));

            Assert.False(osSkipAttribute.IsMet);
        }
Exemple #2
0
        public void DoesNotSkip_WhenOnlyVersionsMatch()
        {
            var osSkipAttribute = new OSMinVersionAttribute(
                OperatingSystems.Windows,
                new Version("2.5"),
                OperatingSystems.Linux,
                new Version("2.5"));

            Assert.True(osSkipAttribute.IsMet);
        }
Exemple #3
0
        public void DoesNotSkip_SameVersion()
        {
            var osSkipAttribute = new OSMinVersionAttribute(
                OperatingSystems.Windows,
                new Version("2.5"),
                OperatingSystems.Windows,
                new Version("2.5"));

            Assert.True(osSkipAttribute.IsMet);
        }