Exemplo n.º 1
0
        public void TestValueFromName2()
        {
            Colours c = ExtendedEnum <Colours> .GetValue("Green | Red", true);

            Assert.AreEqual(Colours.Yellow, c);
        }
Exemplo n.º 2
0
        public void TestNumericalGetValue()
        {
            Colours c = ExtendedEnum <Colours> .GetValue("32 | Red", true);

            Assert.AreEqual((Colours)32 | Colours.Red, c);
        }
Exemplo n.º 3
0
        public void TestGetValueFromName()
        {
            Colours c = ExtendedEnum <Colours> .GetValue("Yellow | Blue", true);

            Assert.AreEqual(Colours.Yellow | Colours.Blue, c);
        }