public void Creating_ResultX2EError_should_succeed_if_optional_field_is_null_or_empty()
        {
            var result = new Result.Error("Error message");

            result.Should().NotBeNull();

            result = new Result.Error("Error message", string.Empty);
            result.Should().NotBeNull();
        }
Beispiel #2
0
 public void ResultUnion_Casts()
 {
     Result       r1 = new Result.Error(new ErrorResult(""));
     Result <int> r2 = new Result.Error(new ErrorResult(""));
 }