Exemple #1
0
    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());
    }
Exemple #2
0
 public void SetUpRacket()
 {
     iRacket          = Substitute.For <IRacket>();
     racketController = new RacketController();
     racketController.SetIRacket(iRacket);
     racketController.SetLocalDeltaTime(1f);
     racketController.SetRacketVelocity(1f);
     racketController.SetRacketLimit(10);
 }