public void TestMatchForFailure1() { const string expected = "expected"; var result = expected.ToFailure <string>(); var actual = result .MatchFailure(errors => errors) .MatchSuccess(ConsList.From); Assert.Equal(ConsList.From(expected), actual); }
public void TestMatchForFailure1() { const string expected = "expected"; var result = expected.ToFailure <string>(); var actual = result .MatchFailure(errors => errors) .MatchSuccess(ConsList.From); Assert.Equal(ConsList.From(expected), actual); }