Example #1
0
 public void ENumfromAStringEmptyReturnTest()
 {
     try
     {
         int result = (int)EnumParse.ParseEnum <Test>("");
         IsTrue(false);
     }
     catch
     {
         IsTrue(true);
     }
 }
Example #2
0
        public void ENumfromAIntegerEmptyReturnTest()
        {
            string str = EnumParse.ParseEnum <Test>(20);

            IsTrue(str.IsEmpty());
        }
Example #3
0
 public void ENumfromAStringTest()
 {
     AreEqual(Test.one, EnumParse.ParseEnum <Test>("one"));
 }
Example #4
0
        public void ENumfromAIntegerTest()
        {
            string str = EnumParse.ParseEnum <Test>(2);

            IsTrue(str.Match("two"));
        }