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

            SimpleIndexedEnumNegativeOffset result = expected.Previous();

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

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

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