Esempio n. 1
0
 public void Test_Parse_MemberIsEmpty(string member)
 {
     AssertHelper.Throws <ArgumentNullException>(() =>
     {
         Enum.Parse <EnumSample>(member);
     }, "member");
 }
Esempio n. 2
0
 public void Test_Parse_Nullable(string member, EnumSample?sample)
 {
     Assert.Equal(sample, Enum.Parse <EnumSample?>(member));
 }
Esempio n. 3
0
 public void Test_Parse(string member, EnumSample sample)
 {
     Assert.Equal(sample, Enum.Parse <EnumSample>(member));
 }