public void ToStringReturnsExpectedResult()
        {
            var value  = _knownValues[new Random().Next(0, _knownValues.Length)];
            var sut    = RoadNodeType.Parse(value);
            var result = sut.ToString();

            Assert.Equal(value, result);
        }
        public void ParseReturnsExpectedResultWhenValueIsUnknown()
        {
            var value = _fixture.Create <string>();

            Assert.Throws <FormatException>(() => RoadNodeType.Parse(value));
        }
        public void ParseReturnsExpectedResultWhenValueIsWellKnown()
        {
            var value = _knownValues[new Random().Next(0, _knownValues.Length)];

            Assert.NotNull(RoadNodeType.Parse(value));
        }
 public void ParseValueCanNotBeNull()
 {
     Assert.Throws <ArgumentNullException>(() => RoadNodeType.Parse(null));
 }