public void TryParseReturnsExpectedResultWhenValueIsUnknown()
        {
            var value  = _fixture.Create <string>();
            var result = RoadNodeType.TryParse(value, out RoadNodeType parsed);

            Assert.False(result);
            Assert.Null(parsed);
        }
        public void TryParseReturnsExpectedResultWhenValueIsWellKnown()
        {
            var value  = _knownValues[new Random().Next(0, _knownValues.Length)];
            var result = RoadNodeType.TryParse(value, out RoadNodeType parsed);

            Assert.True(result);
            Assert.NotNull(parsed);
            Assert.Equal(value, parsed.ToString());
        }
 public void TryParseValueCanNotBeNull()
 {
     Assert.Throws <ArgumentNullException>(() => RoadNodeType.TryParse(null, out _));
 }