Esempio n. 1
0
        public void SparseEnumNegativeOffsetCarryOverBackwardTest()
        {
            SparseEnumNegativeOffset expected = SparseEnumNegativeOffset.Null;

            SparseEnumNegativeOffset result = expected.Previous();

            Assert.AreEqual(SparseEnumNegativeOffset.Four, result);
        }
Esempio n. 2
0
        public void SparseEnumNegativeOffsetDoublePreviousTest()
        {
            SparseEnumNegativeOffset expected = SparseEnumNegativeOffset.Three;

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

            Assert.AreEqual(SparseEnumNegativeOffset.One, result);
        }
Esempio n. 3
0
        public void SparseEnumNegativeOffsetCarryOverForwardTest()
        {
            SparseEnumNegativeOffset expected = SparseEnumNegativeOffset.Four;

            SparseEnumNegativeOffset result = expected.Next();

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

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

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

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

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