예제 #1
0
        public void CanParseReturnsExpectedResultWhenValueIsWellKnown()
        {
            var value  = _knownValues[new Random().Next(0, _knownValues.Length)];
            var result = RoadNodeType.CanParse(value);

            Assert.True(result);
        }
예제 #2
0
        public void CanParseReturnsExpectedResultWhenValueIsUnknown()
        {
            var value  = _fixture.Create <string>();
            var result = RoadNodeType.CanParse(value);

            Assert.False(result);
        }
예제 #3
0
 public void CanParseValueCanNotBeNull()
 {
     Assert.Throws <ArgumentNullException>(() => RoadNodeType.CanParse(null));
 }