public void Verify_Failed_Result_Properties() { var exception = new ArgumentException(); var conversionResult = ConversionResult.Failed(exception); Assert.Equal(ConversionStatus.Failed, conversionResult.Status); Assert.Null(conversionResult.Value); Assert.Equal(exception, conversionResult.Error); }
public void Failed_Throws_With_Null_Argument() { Assert.Throws <ArgumentNullException>(() => ConversionResult.Failed(exception: null)); }