public void SimpleIndexEnumCarryOverBackwardTest() { SimpleIndexedEnum expected = SimpleIndexedEnum.Null; SimpleIndexedEnum result = expected.Previous(); Assert.AreEqual(SimpleIndexedEnum.Four, result); }
public void SimpleIndexEnumDoublePreviousTest() { SimpleIndexedEnum expected = SimpleIndexedEnum.Three; SimpleIndexedEnum result = expected.Previous().Previous(); Assert.AreEqual(SimpleIndexedEnum.One, result); }
public void SimpleIndexEnumCarryOverForwardTest() { SimpleIndexedEnum expected = SimpleIndexedEnum.Four; SimpleIndexedEnum result = expected.Next(); Assert.AreEqual(SimpleIndexedEnum.Null, result); }
public void SimpleIndexEnumDoubleNextTest() { SimpleIndexedEnum expected = SimpleIndexedEnum.One; SimpleIndexedEnum result = expected.Next().Next(); Assert.AreEqual(SimpleIndexedEnum.Three, result); }
public void SimpleIndexEnumMaxTest() { SimpleIndexedEnum result = EnumExtension.Max <SimpleIndexedEnum>(); Assert.AreEqual(SimpleIndexedEnum.Four, result); }
public void SimpleIndexEnumMinTest() { SimpleIndexedEnum result = EnumExtension.Min <SimpleIndexedEnum>(); Assert.AreEqual(SimpleIndexedEnum.Null, result); }