예제 #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);
        }
예제 #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);
        }
예제 #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);
        }