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