public void UpdatePosition_WanderingBullet_SinDown_Success() { Wandering_Bullet test = new Wandering_Bullet(20, 20, pattern.Sindown); test.UpdatePosition(); Assert.IsTrue(test.X > 20); Assert.IsTrue(test.Y < 20); }
public void UpdatePosition_WanderingBullet_OutofBounds_Despawn() { Wandering_Bullet test = new Wandering_Bullet(9000, 20, pattern.Sin); test.id = ID.Hostile; test.UpdatePosition(); Assert.IsTrue(test.alive == false); test.alive = true; test = new Wandering_Bullet(-9000, 20, pattern.Sin); test.UpdatePosition(); Assert.IsTrue(test.alive == false); }