diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-11-11 20:27:50 -0800 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-11-11 20:27:50 -0800 |
commit | 3e75e9c22a07a079103b53fc38a985ab66384d0d (patch) | |
tree | 2262fbdca4a861129743e9f7784cea061bf22b06 /src/DotNetOpenAuth.Test/TestUtilities.cs | |
parent | e8ab62f93adad1205fa572285a403e8b91e2ccf5 (diff) | |
download | DotNetOpenAuth-3e75e9c22a07a079103b53fc38a985ab66384d0d.zip DotNetOpenAuth-3e75e9c22a07a079103b53fc38a985ab66384d0d.tar.gz DotNetOpenAuth-3e75e9c22a07a079103b53fc38a985ab66384d0d.tar.bz2 |
Added association messages.
Diffie-Hellman associations seem to be working according to the test.
But lots of refactoring is probably in order.
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()); - } } } |