コード例 #1
0
        public static void CheckShootCowInMillB(int val1, int val2, int val3)  //tests for all cases
        //this checks that a cow can be shoot when there are only mills on the board
        {
            Morabaraba morabaraba = new Morabaraba();

            morabaraba.Move(val1); //p1
            morabaraba.NextTurn();
            morabaraba.Move(val2); //p1
            morabaraba.NextTurn();
            morabaraba.Move(val3); //p1
            morabaraba.Changeremoving();
            Helpers.IValidPositionVerifier verifier = new Helpers.ValidPositionVerifier(morabaraba.CurrentBoard);

            Assert.That(verifier.VerifyCanShoot(val1, morabaraba.Turn()));
        }