Пример #1
0
        public void Can_attack_on_a_diagonal_slanted_the_other_way()
        {
            var queens = new Queens(new Queen(6, 1), new Queen(1, 6));

            Assert.True(queens.CanAttack());
        }
Пример #2
0
        public void Can_attack_on_yet_another_diagonal()
        {
            var queens = new Queens(new Queen(4, 1), new Queen(6, 3));

            Assert.True(queens.CanAttack());
        }
Пример #3
0
        public void Can_attack_on_other_diagonal()
        {
            var queens = new Queens(new Queen(0, 6), new Queen(1, 7));

            Assert.True(queens.CanAttack());
        }
Пример #4
0
        public void Can_attack_on_diagonal()
        {
            var queens = new Queens(new Queen(1, 1), new Queen(6, 6));

            Assert.True(queens.CanAttack());
        }
Пример #5
0
        public void Can_attack_on_same_column()
        {
            var queens = new Queens(new Queen(5, 4), new Queen(2, 4));

            Assert.True(queens.CanAttack());
        }
Пример #6
0
        public void Cannot_attack()
        {
            var queens = new Queens(new Queen(2, 3), new Queen(4, 7));

            Assert.False(queens.CanAttack());
        }