Beispiel #1
0
        public void Test2()
        {
            string   s = TestEnum.Three.ToString();
            TestEnum e = TestEnum.One;

            TestEnum.Parse(typeof(TestEnum), "Two");
            string ss = System.PlatformID.Win32Windows.ToString();
        }
 public void Parse_Exception()
 {
     Assert.ThrowsException <InvalidCastException>(() => TestEnum.Parse("ParamD"));
 }
        public void Parse_True()
        {
            var res = TestEnum.Parse("ParamA");

            Assert.AreEqual(TestEnum.ParamA, res);
        }