Beispiel #1
0
        public void EnumDescriptionNonEnumTest()
        {
            EnumTestStruct strct = new EnumTestStruct();

            strct.GetDescription();

            // Should always throw exception
            Assert.Fail();
        }
Beispiel #2
0
        public static void StructTest5()
        {
            EnumTestStruct val = new EnumTestStruct();

            Console.WriteLine(val.value);
        }
Beispiel #3
0
        public void EnumDescriptionNonEnumTest()
        {
            EnumTestStruct @struct = new EnumTestStruct();

            Assert.Throws <ArgumentException>(() => @struct.GetDescription());
        }
Beispiel #4
0
        public void EnumDescriptionNonEnumTest()
        {
            EnumTestStruct strct = new EnumTestStruct();

            strct.GetDescription();
        }