public void Result_Without_Value_Should_Return_Default() { var result = new ConversionResult <int>(); result.OrDefault().Should().Be(0); result.Or(2).Should().Be(2); }
public void Result_With_Value_Should_Return_Value_Instead_Of_Default() { var result = new ConversionResult <int>(1); result.OrDefault().Should().Be(1); result.Or(2).Should().Be(1); }