示例#1
0
        public void GivenGameHasStartedWhenCharacterEquipsIronArmorThenCharactersArmorIsUnchanged()
        {
            var game = new EvercraftGame();

            game.Start("Jack", "Bob");

            game.EquipArmor(ArmorType.Iron, 50, game.Chars[1]);

            game.Chars[1].Arm.Should().Be(10);
        }
示例#2
0
        public void GivenGameHasStartedWhenCharacterEquipsHeavyArmorThenCharactersArmorIsIncreasedByTwo()
        {
            var game = new EvercraftGame();

            game.Start("Jack", "Bob");

            game.EquipArmor(ArmorType.Iron, 51, game.Chars[0]);

            game.Chars[0].Arm.Should().Be(12);
        }
示例#3
0
        public void GivenGameHasStartedWhenCharacterEquipsSteelArmorThenCharactersArmorIsIncreasedByOne()
        {
            var game = new EvercraftGame();

            game.Start("Jack", "Bob");

            game.EquipArmor(ArmorType.Steel, 50, game.Chars[1]);

            game.Chars[1].Arm.Should().Be(11);
        }