Пример #1
0
        public void ParseReturnsExpectedResultWhenValueIsUnknown()
        {
            var value = _fixture.Create <string>();

            Assert.Throws <FormatException>(() => RoadSegmentLaneDirection.Parse(value));
        }
Пример #2
0
 public void CanParseValueCanNotBeNull()
 {
     Assert.Throws <ArgumentNullException>(() => RoadSegmentLaneDirection.CanParse(null));
 }
Пример #3
0
        public void ParseReturnsExpectedResultWhenValueIsWellKnown()
        {
            var value = _knownValues[new Random().Next(0, _knownValues.Length)];

            Assert.NotNull(RoadSegmentLaneDirection.Parse(value));
        }