// Test that "RuntimeHelpers.Equals" bypasses virtual overrides // on "Object.Equals(Object)" to perform the base class identity // check on value types. public void TestHelpersEquals() { EqualsTest eq = new EqualsTest(); EqualsTest eq2 = new EqualsTest(); Assert("Equals (1)", !(eq.Equals(eq))); Assert("Equals (2)", !(Object.Equals(eq, eq))); Assert("Equals (3)", RuntimeHelpers.Equals(eq, eq)); }