public void Result_Without_Value_Should_Not_Be_Convertible_To_Underlying_Type() { var result = new ConversionResult <int>(); Action a = () => { var x = result.To <int>(); }; a.Should().Throw <InvalidConversionException>(); }
public void Result_With_Value_Should_Be_Convertible_To_Underlying_Type() { var result = new ConversionResult <int>(1); result.To <int>().Should().Be(1); }