Esempio n. 1
0
        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);
        }