public void PartiallyLabeledTryParseTest(string label, PartiallyLabeled expected, bool canParse) { bool canParsed = EnumLabel.TryParse <PartiallyLabeled>(label, out PartiallyLabeled result); Assert.Equal(expected, result); Assert.Equal(canParse, canParsed); }
public void PartiallyLabeledParseTest(string label, PartiallyLabeled expected, bool canParse) { try { var result = EnumLabel.Parse <PartiallyLabeled>(label); Assert.Equal(expected, result); Assert.True(canParse); } catch { Assert.False(canParse); } }
public void PartiallyLabeledToLabelTest(PartiallyLabeled enumValue, string label) { //ToLabel Assert.Equal(label, enumValue.ToLabelString()); }