예제 #1
0
        public void ShouldAttackAndTie()
        {
            var c = MoveTestContext.RankBased(7, 7);

            c.Game.Move(c.P1, c.P2);

            c.Game.Board[c.P1].Piece.Should().BeNull();
            c.Game.Board[c.P2].Piece.Should().BeNull();
        }
예제 #2
0
        public void ShouldAttackAndLoose()
        {
            var c = MoveTestContext.RankBased(5, 8);

            c.Game.Move(c.P1, c.P2);

            c.Game.Board[c.P1].Piece.Should().BeNull();
            c.Game.Board[c.P2].Piece.Should().Be(c.Defender);
        }