public void Problem1_PointStruct_SideAffecting() { // Instantiate the problem var target = new Problem1(); // Set up the test int x = 5; int y = 10; var pointStruct = new MutablePointStruct() { X = x, Y = y }; var result = target.DoubleTheTargetPointStruct(pointStruct); // Assert truths. Assert.AreEqual(x * 2, result.X); Assert.AreEqual(y * 2, result.Y); }