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

            strct.GetDescription();

            // Should always throw exception
            Assert.Fail();
        }
Example #2
0
        public void EnumDescriptionNonEnumTest()
        {
            EnumTestStruct @struct = new EnumTestStruct();

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

            strct.GetDescription();
        }