public void TestVector2WithX() { // Arrange. var u = new Vector2(X, Y); const int NewX = 4; // Act. var v = u.WithX(NewX); // Assert. Assert.AreEqual(NewX, v.x); Assert.AreEqual(u.y, v.y); }