Beispiel #1
0
        public void Negate()
        {
            var isEvenNeg = Ex2.Negate(Ex2.IsEven);

            Assert.IsFalse(isEvenNeg(10));
            Assert.IsTrue(isEvenNeg(11));
        }
Beispiel #2
0
 public void IsEven()
 {
     Assert.IsTrue(Ex2.IsEven(10));
     Assert.IsFalse(Ex2.IsEven(11));
 }