예제 #1
0
        public void Equals_OtherDiffSquare_False()
        {
            var square = new CheckersSquare(3, 2);
            var other = new CheckersSquare(3, 3);

            Assert.IsFalse(square.Equals(other));
        }
예제 #2
0
        public void Equals_OtherEqualSquare_True()
        {
            var square = new CheckersSquare(3, 3);
            var other = new CheckersSquare(3, 3);

            Assert.IsTrue(square.Equals(other));
        }
예제 #3
0
        public void Equals_NotPiece_False()
        {
            var square = new CheckersSquare(3, 2);

            Assert.IsFalse(square.Equals("square"));
        }