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