Exemplo n.º 1
0
 protected void ValidateNinjaWarriorWithOverides(IWarrior warrior)
 {
     warrior.ShouldBeInstanceOf<Ninja>();
     warrior.Weapon.ShouldBeInstanceOf<Shuriken>();
     Ninja ninja = warrior as Ninja;
     ninja.SecondaryWeapon.ShouldBeInstanceOf<Sword>();
     ninja.VerySecretWeaponAccessor.ShouldBeInstanceOf<Sword>();
 }
Exemplo n.º 2
0
        protected void ValidateNinjaWarriorWithOverides(IWarrior warrior)
        {
            warrior.ShouldBeInstanceOf <Ninja>();
            warrior.Weapon.ShouldBeInstanceOf <Shuriken>();
            Ninja ninja = warrior as Ninja;

            ninja.SecondaryWeapon.ShouldBeInstanceOf <Sword>();
            ninja.VerySecretWeaponAccessor.ShouldBeInstanceOf <Sword>();
        }
Exemplo n.º 3
0
 protected void ValidateWarrior(IWarrior warrior)
 {
     warrior.ShouldBeInstanceOf<FootSoldier>();
     warrior.Weapon.ShouldNotBeNull();
     warrior.Weapon.ShouldBeInstanceOf<Shuriken>();
 }
Exemplo n.º 4
0
 protected void ValidateWarrior(IWarrior warrior)
 {
     warrior.ShouldBeInstanceOf <FootSoldier>();
     warrior.Weapon.ShouldNotBeNull();
     warrior.Weapon.ShouldBeInstanceOf <Shuriken>();
 }