コード例 #1
0
        public void test3()
        {
            var response = UtilService.GetEnumName <MorningMeals>("5");

            Assert.Equal("error", response);
        }
コード例 #2
0
 public void test4()
 {
     Assert.Throws <ArgumentException>(() => UtilService.GetEnumName <int>("test"));
 }
コード例 #3
0
        public void test2()
        {
            var response = UtilService.GetEnumName <MorningMeals>("2");

            Assert.Equal(MorningMeals.toast.ToString(), response);
        }