Esempio n. 1
0
 public void TestAMoveEqualsAnotherIfTheyCaptureTheSameGridPointsAndTheirPositionsMatch()
 {
     var gp1 = new GridPoint(1, 1);
     var gp2 = new GridPoint(2, 2);
     var move1 = new Move(gp1, new Group(gp2));
     var move2 = new Move(gp1, new Group(gp2));
     Assert.AreEqual(move1, move2);
 }
Esempio n. 2
0
 public void TestAMoveDoesNotEqualAnotherIfTheyHaveDifferentCapturedGridPoints()
 {
     var gp1 = new GridPoint(1, 1);
     var gp2 = new GridPoint(2, 2);
     var gp3 = new GridPoint(3, 3);
     var move1 = new Move(gp1, new Group(gp2));
     var move2 = new Move(gp1, new Group(gp3));
     Assert.AreNotEqual(move1, move2);
 }