Beispiel #1
0
 [TestMethod] public void ValueByIndexTestByTypeWrongType()
 => Assert.AreEqual(null, GetEnum.ValueByIndex(typeof(string), 100));
Beispiel #2
0
 [TestMethod] public void ValueByIndexTestWrongType()
 => Assert.AreEqual(null, GetEnum.ValueByIndex <string>(100));
Beispiel #3
0
 [TestMethod] public void ValueByIndexTestByTypeWrongIndex()
 => Assert.AreEqual(TestEnum.Undefined, GetEnum.ValueByIndex(typeof(TestEnum), 100));
Beispiel #4
0
 [TestMethod] public void ValueByIndexTestWrongIndex()
 => Assert.AreEqual(TestEnum.Undefined, GetEnum.ValueByIndex <TestEnum>(100));
Beispiel #5
0
 [TestMethod] public void ValueByIndexTestByType()
 => Assert.AreEqual(TestEnum.Second, GetEnum.ValueByIndex(typeof(TestEnum), 2));
Beispiel #6
0
 [TestMethod] public void ValueByIndexTest()
 => Assert.AreEqual(TestEnum.First, GetEnum.ValueByIndex <TestEnum>(1));