public void CanParseReturnsExpectedResultWhenValueIsUnknown() { var value = _fixture.Create <string>(); var result = LabelType.CanParse(value); Assert.False(result); }
public void CanParseReturnsExpectedResultWhenValueIsWellKnown() { var value = _knownValues[new Random().Next(0, _knownValues.Length)]; var result = LabelType.CanParse(value); Assert.True(result); }
public void CanParseValueCanNotBeNull() { Assert.Throws <ArgumentNullException>(() => LabelType.CanParse(null)); }