public void ShouldCreateBossEnemyWithCorrectPower() { var factory = new EnemyFactory(); var boss = factory.Create(true); var bossEnemy = boss.ShouldBeOfType<BossEnemy>(); bossEnemy.ExtraPower.ShouldBe(42); }
public void ShouldCreateBoxxEnemy() { var factory = new EnemyFactory(); var boss = factory.Create(true); boss.ShouldBeOfType<BossEnemy>(); // This fails, has to be exact, not inherited //boss.ShouldBeOfType<Enemy>(); boss.ShouldBeAssignableTo<Enemy>(); }