Exemplo n.º 1
0
        public void IsCarryingTooMuchToMove_should_return_false_when_player_has_okay_item_count()
        {
            var items = new List <Item>();

            var item1 = new ItemBuilder()
                        .With(i => i.IsEquipped, false)
                        .BuildAndSave();

            var item2 = new ItemBuilder()
                        .With(i => i.IsEquipped, false)
                        .BuildAndSave();

            items.Add(item1);
            items.Add(item2);

            var player = new PlayerBuilder()
                         .With(i => i.Items, items)
                         .BuildAndSave();

            Assert.That(player.IsCarryingTooMuchToMove(), Is.False);
        }