Ejemplo n.º 1
0
 public void Setup()
 {
     this.calculator = new OperationSuccessCalculator();
 }
        public void TestSuccesfulAttack()
        {
            var calculator = new OperationSuccessCalculator();

            Assert.True(calculator.IsAttackSuccesful(3, 4));
        }
        public void TestDefencekWithOutOfBoardCoordinates()
        {
            var calculator = new OperationSuccessCalculator();

            Assert.False(calculator.IsAttackSuccesful(201, 301));
        }
        public void TestDefenceWithNegativeCoordinates()
        {
            var calculator = new OperationSuccessCalculator();

            Assert.False(calculator.IsAttackSuccesful(-1, -1));
        }
        public void TestDefencekWithZeroCoordinates()
        {
            var calculator = new OperationSuccessCalculator();

            Assert.False(calculator.IsAttackSuccesful(0, 0));
        }
        public void TestSuccesfulDefence()
        {
            var calculator = new OperationSuccessCalculator();

            Assert.True(calculator.IsDefenceSuccesful(3, 3));
        }