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