public void Sets_Positive_1_Horizontal_Starting_Direction() { var random = Substitute.For <IRandom>(); random.Range(0, 0).ReturnsForAnyArgs(1); randomUtils.randomProxy = random; ballMovement.random = randomUtils; Assert.AreEqual( 1, ballMovement.GetStartingDirection().x / ballMovement.speed ); }