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