public void ParseReturnsExpectedResultWhenValueIsUnknown() { var value = _fixture.Create <string>(); Assert.Throws <FormatException>(() => RoadSegmentLaneDirection.Parse(value)); }
public void CanParseValueCanNotBeNull() { Assert.Throws <ArgumentNullException>(() => RoadSegmentLaneDirection.CanParse(null)); }
public void ParseReturnsExpectedResultWhenValueIsWellKnown() { var value = _knownValues[new Random().Next(0, _knownValues.Length)]; Assert.NotNull(RoadSegmentLaneDirection.Parse(value)); }