public void CombineScalarsToVectorTest() { ScalarStub x = new ScalarStub("x"); ScalarStub y = new ScalarStub("y"); ValueSpy <Vector2> spy = new ValueSpy <Vector2>(Combine.ScalarsToVector(x, y)); spy.WaitFrame(); spy.AssertNothingHappened(); x.Update(0.5f); spy.WaitFrame(); spy.AssertWasUpdatedTo(new Vector2(0.5f, 0)); spy.WaitFrame(); spy.AssertNothingHappened(); y.Update(-1); spy.WaitFrame(); spy.AssertWasUpdatedTo(new Vector2(0.5f, -1)); }