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