Пример #1
0
        public void DoesNotSkip_WhenOnlyVersionsMatch()
        {
            var osSkipAttribute = new MaximumOSVersionAttribute(
                OperatingSystems.Windows,
                new Version("2.5.10.12"),
                OperatingSystems.Linux,
                new Version("2.5.10.12"));

            Assert.True(osSkipAttribute.IsMet);
        }
Пример #2
0
        public void DoesNotSkip_SameVersion()
        {
            var osSkipAttribute = new MaximumOSVersionAttribute(
                OperatingSystems.Windows,
                new Version("2.5.10"),
                OperatingSystems.Windows,
                new Version("2.5.10.12"));

            Assert.True(osSkipAttribute.IsMet);
        }
Пример #3
0
        public void Skip_LaterVersion()
        {
            var osSkipAttribute = new MaximumOSVersionAttribute(
                OperatingSystems.Windows,
                new Version("2.5.11"),
                OperatingSystems.Windows,
                new Version("3.0.10.12"));

            Assert.False(osSkipAttribute.IsMet);
        }
        public void DoesNotSkip_EarlierVersions()
        {
            var osSkipAttribute = new MaximumOSVersionAttribute(
                OperatingSystems.Windows,
                new Version("2.5"),
                OperatingSystems.Windows,
                new Version("2.0"));

            Assert.True(osSkipAttribute.IsMet);
        }