Exemplo n.º 1
0
        public void ParseReturnsExpectedResultWhenValueIsUnknown()
        {
            var value = _fixture.Create <string>();

            Assert.Throws <FormatException>(() => RoadSegmentLaneDirection.Parse(value));
        }
Exemplo n.º 2
0
 public void CanParseValueCanNotBeNull()
 {
     Assert.Throws <ArgumentNullException>(() => RoadSegmentLaneDirection.CanParse(null));
 }
Exemplo n.º 3
0
        public void ParseReturnsExpectedResultWhenValueIsWellKnown()
        {
            var value = _knownValues[new Random().Next(0, _knownValues.Length)];

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