Beispiel #1
0
        public void SimpleIndexedEnumNegativeOffsetCarryOverBackwardTest()
        {
            SimpleIndexedEnumNegativeOffset expected = SimpleIndexedEnumNegativeOffset.Null;

            SimpleIndexedEnumNegativeOffset result = expected.Previous();

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

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

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

            SimpleIndexedEnumNegativeOffset result = expected.Next();

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

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

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

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

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