public void WithStringMatchingAValue_ReturnsSome() { var result = Enums.Parse <Values>(nameof(Values.One)); var value = result.MustBeSome(); Assert.Equal(Values.One, value); }
public void WithStringMatchingAValue_ReturnsNone() { var result = Enums.Parse <Values>("InvalidValue"); result.MustBeNone(); }
public void WithNull_ReturnsNone() { var result = Enums.Parse <Values>(null); result.MustBeNone(); }