Beispiel #1
0
 /// <summary>
 /// This method is called when two objects have been compared and found to be
 /// different. This prints a nice message to the screen.
 /// </summary>
 /// <param name="message">The message that is to be printed prior to the comparison failure</param>
 /// <param name="expected">The expected object</param>
 /// <param name="actual">The actual object</param>
 /// <param name="args">Arguments to be used in formatting the message</param>
 static protected void FailNotEquals(Object expected, Object actual, string message,
                                     params object[] args)
 {
     Assert.Fail(
         AssertionFailureMessage.FormatMessageForFailNotEquals(
             expected,
             actual,
             message,
             args));
 }
Beispiel #2
0
 /// <summary>
 /// This method is called when two arrays have been compared and found to be
 /// different. This prints a nice message to the screen.
 /// </summary>
 /// <param name="index">The index at which the failure occured</param>
 /// <param name="expected">The expected array</param>
 /// <param name="actual">The actual array</param>
 /// <param name="message">The message that is to be printed prior to the comparison failure</param>
 /// <param name="args">Arguments to be used in formatting the message</param>
 static protected void FailArraysNotEqual(int index, Array expected, Array actual,
                                          string message, params object[] args)
 {
     Assert.Fail(
         AssertionFailureMessage.FormatMessageForFailArraysNotEqual(
             index,
             expected,
             actual,
             message,
             args));
 }