/// <summary> /// Asserts that two objects refer to the same object. If they /// are not the same an <see cref="AssertionException"/> is thrown. /// </summary> /// <param name="expected">The expected object</param> /// <param name="actual">The actual object</param> /// <param name="message">The message to be printed when the two objects are not the same object.</param> /// <param name="args">Arguments to be used in formatting the message</param> static public void AreSame(Object expected, Object actual, string message, params object[] args) { ++counter; if (object.ReferenceEquals(expected, actual)) { return; } Assert.FailNotSame(expected, actual, message, args); }