Esempio n. 1
0
        public void SimpleIndexedEnumNegativeOffsetCarryOverBackwardTest()
        {
            SimpleIndexedEnumNegativeOffset expected = SimpleIndexedEnumNegativeOffset.Null;

            SimpleIndexedEnumNegativeOffset result = expected.Previous();

            Assert.AreEqual(SimpleIndexedEnumNegativeOffset.Four, result);
        }
Esempio n. 2
0
        public void SimpleIndexedEnumNegativeOffsetDoublePreviousTest()
        {
            SimpleIndexedEnumNegativeOffset expected = SimpleIndexedEnumNegativeOffset.Four;

            SimpleIndexedEnumNegativeOffset result = expected.Previous().Previous();

            Assert.AreEqual(SimpleIndexedEnumNegativeOffset.Two, result);
        }
Esempio n. 3
0
        public void SimpleIndexedEnumNegativeOffsetCarryOverForwardTest()
        {
            SimpleIndexedEnumNegativeOffset expected = SimpleIndexedEnumNegativeOffset.Four;

            SimpleIndexedEnumNegativeOffset result = expected.Next();

            Assert.AreEqual(SimpleIndexedEnumNegativeOffset.Null, result);
        }
Esempio n. 4
0
        public void SimpleIndexedEnumNegativeOffsetDoubleNextTest()
        {
            SimpleIndexedEnumNegativeOffset expected = SimpleIndexedEnumNegativeOffset.One;

            SimpleIndexedEnumNegativeOffset result = expected.Next().Next();

            Assert.AreEqual(SimpleIndexedEnumNegativeOffset.Three, result);
        }
Esempio n. 5
0
        public void SimpleIndexedEnumNegativeOffsetMaxTest()
        {
            SimpleIndexedEnumNegativeOffset result = EnumExtension.Max <SimpleIndexedEnumNegativeOffset>();

            Assert.AreEqual(SimpleIndexedEnumNegativeOffset.Four, result);
        }
Esempio n. 6
0
        public void SimpleIndexedEnumNegativeOffsetMinTest()
        {
            SimpleIndexedEnumNegativeOffset result = EnumExtension.Min <SimpleIndexedEnumNegativeOffset>();

            Assert.AreEqual(SimpleIndexedEnumNegativeOffset.Null, result);
        }