void DoSomethingByRef(ref MyStruct myPassedInStruct) { myPassedInStruct.FirstNumber = myPassedInStruct.SecondNumber; Assert.AreEqual(myPassedInStruct.SecondNumber, myPassedInStruct.FirstNumber); }