diff options
Diffstat (limited to 'src/DotNetOpenAuth.Test/TestUtilities.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/TestUtilities.cs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/DotNetOpenAuth.Test/TestUtilities.cs b/src/DotNetOpenAuth.Test/TestUtilities.cs index 3b70cc2..a2ff689 100644 --- a/src/DotNetOpenAuth.Test/TestUtilities.cs +++ b/src/DotNetOpenAuth.Test/TestUtilities.cs @@ -13,33 +13,5 @@ namespace DotNetOpenAuth.Test { /// An assortment of methods useful for testing. /// </summary> internal class TestUtilities { - /// <summary> - /// Tests whether two arrays are equal in length and contents. - /// </summary> - /// <typeparam name="T">The type of elements in the arrays.</typeparam> - /// <param name="first">The first array to test. May not be null.</param> - /// <param name="second">The second array to test. May not be null.</param> - /// <returns>True if the arrays equal; false otherwise.</returns> - public static bool AreEquivalent<T>(T[] first, T[] second) { - if (first == null) { - throw new ArgumentNullException("first"); - } - if (second == null) { - throw new ArgumentNullException("second"); - } - if (first.Length != second.Length) { - return false; - } - for (int i = 0; i < first.Length; i++) { - if (!first[i].Equals(second[i])) { - return false; - } - } - return true; - } - - public static bool AreEquivalent<TKey, TValue>(IDictionary<TKey, TValue> first, IDictionary<TKey, TValue> second) { - return AreEquivalent(first.ToArray(), second.ToArray()); - } } } |