FluentResults
FluentResults copied to clipboard
Errors.Add has no effect
FluentResult v3.16.0
var result = new Result();
result.Errors.Add(new Error("A"));
var errorCount = result.Errors.Count();
errorCount is 0 but I'd expect 1 result.IsFailed is false, but I'd expect true
var result = new Result();
result.Reasons.Add(new Error("A"));
var errorCount = result.Errors.Count();
errorCount is 1 result.IsFailed is true
I think I've fallen into the trap raised by https://github.com/altmann/FluentResults/issues/197 which is fixed in the open PR https://github.com/altmann/FluentResults/pull/164
Implemented in the next new version