public void TestMovementStrategy() { IEnemy zombieFollow = new ZombieModel(LIFE, SPEED, DAMAGE, TypeOfMovement.FOLLOW); IEnemy zombieRandom = new ZombieModel(LIFE, SPEED, DAMAGE, TypeOfMovement.RANDOM); Assert.Equal("followingZombie", zombieFollow.GetMovementStrategy()); Assert.Equal("stupidZombie", zombieRandom.GetMovementStrategy()); }
public void TestZombie() { IEnemy zombieFollow = new ZombieModel(LIFE, SPEED, DAMAGE, TypeOfMovement.FOLLOW); Assert.NotNull(zombieFollow); Assert.Equal(LIFE, zombieFollow.Life); Assert.Equal(SPEED, zombieFollow.Speed); Assert.Equal(DAMAGE, zombieFollow.Damage); }