public void test_step() { var step = new TimeStep(5f, 10f, 10f); Assert(step.Value == 5f); step.Step(5f); Assert(step.Value == 7.5f); step.Step(5f); Assert(step.Value == 10f); }
public void test_step_and_back() { var step = new TimeStep(5f, 10f, 10f, TimeStepMode.ForwardsAndBack); Assert(step.Value == 5f); step.Step(2.5f); Assert(step.Value == 7.5f); step.Step(2.5f); Assert(step.Value == 10f); step.Step(2.5f); Assert(step.Value == 7.5f); step.Step(2.5f); Assert(step.Value == 5f); }