Example #1
0
        public void DestroyCustle()
        {
            var castle            = new Castle();
            var pathSpawnToCastle = new List <Point> {
                new Point(0, 0), new Point(0, 1), new Point(1, 1)
            };
            var enemy = new HighSkeleton(pathSpawnToCastle);

            for (var i = 0; i < 10; i++)
            {
                castle.ActionInConflict(enemy)();
            }
            castle.Health.Should().Be(0);
            castle.IsAlive.Should().BeFalse();
        }