Beispiel #1
0
        public void NUnitTestOnComplicatedLambda()
        {
            var test   = new ClassWithComplicatedLambda();
            var result = test.Add2ToEachValueAndSumThemWithConsoleWrite(2, 4);

            Assert.AreEqual(10, result);
        }
Beispiel #2
0
        public void TestOnComplicatedLambda()
        {
            var test   = new ClassWithComplicatedLambda();
            var result = test.Add2ToEachValueAndSumThem(2, 4);

            Assert.Equal(10, result);
        }