AreEqual() static private method

static private AreEqual ( object expected, object actual, string message ) : void
expected object
actual object
message string
return void
Exemplo n.º 1
0
 /// <summary>
 /// For backwards compatibility; will be deprecated in the future.
 /// </summary>
 public static void AssertEquals(string message, string[][] expected, string[][] actual)
 {
     WebAssert.AreEqual(expected, actual, message);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns the value of the name/value pair with the specified name.
 /// Throws an exception if there aren't any pairs with that name or
 /// if there's more than one.  Use <see cref="AllValuesOf"/> to handle
 /// cases where there isn't exactly one name/value pair with the
 /// requested name.
 /// </summary>
 public string ValueOf(string name)
 {
     string[] result = AllValuesOf(name);
     WebAssert.AreEqual(1, result.Length, "number of '" + name + "' variables");
     return(result[0]);
 }