Example #1
0
        public void TestMaybeActionWithNonNullValue()
        {
            const string C_EXPECTED = "Hello World";

            Assert.AreEqual(C_EXPECTED, C_EXPECTED.Maybe(_ => { }));
        }
Example #2
0
        public void TestMaybeActionWithNullValue()
        {
            const string C_EXPECTED = null;

            Assert.AreEqual(C_EXPECTED, C_EXPECTED.Maybe(_ => { }));
        }