public static void Check(MyChangingHFAStruct s) { #if V2 Assert.AreEqual(s.x, 12.0f); Assert.AreEqual(s.y, 23.0f); #else Assert.AreEqual(s.x, 12); Assert.AreEqual(s.y, 23); #endif }
static void TestChangingHFAStruct() { MyChangingHFAStruct s = MyChangingHFAStruct.Construct(); MyChangingHFAStruct.Check(s); }