Beispiel #1
0
        public void Associativity()
        {
            var sut = new Calculator();

            Prop.ForAll <int, int>((x, y) => sut.Add(x, y) == sut.Add(y, x)).QuickCheckThrowOnFailure();
        }
Beispiel #2
0
        public void Identity()
        {
            var sut = new Calculator();

            Prop.ForAll <int>((x) => sut.Add(x, 0) == x).QuickCheckThrowOnFailure();
        }