public void MoveUp_DoNotMoveIfIsLimit(float expectedY, float setY, float limit) { Vector2 _expected = new Vector2(0, expectedY); racketController.SetPosition(new Vector2(0, setY)); racketController.SetRacketLimit(limit); racketController.MoveUp(); Assert.AreEqual(_expected, racketController.GetPosition()); }
public void SetUpRacket() { iRacket = Substitute.For <IRacket>(); racketController = new RacketController(); racketController.SetIRacket(iRacket); racketController.SetLocalDeltaTime(1f); racketController.SetRacketVelocity(1f); racketController.SetRacketLimit(10); }