diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-09-17 17:49:14 -0700 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-09-17 17:49:14 -0700 |
commit | ea7cae52f40770d1023362dadd234b8038d9e68b (patch) | |
tree | 2bf9a9bfa01de5887be1336f4a9ece33cbf171e3 /src/DotNetOAuth.Test/Messaging/CollectionAssert.cs | |
parent | 2dcfb4843722237aa214294b59ed9be782ea0cec (diff) | |
download | DotNetOpenAuth-ea7cae52f40770d1023362dadd234b8038d9e68b.zip DotNetOpenAuth-ea7cae52f40770d1023362dadd234b8038d9e68b.tar.gz DotNetOpenAuth-ea7cae52f40770d1023362dadd234b8038d9e68b.tar.bz2 |
Added MessageDictionary and supporting classes and tests.
Very little documentation is there until I can prove the idea works to solve our signing design problem.
Diffstat (limited to 'src/DotNetOAuth.Test/Messaging/CollectionAssert.cs')
-rw-r--r-- | src/DotNetOAuth.Test/Messaging/CollectionAssert.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/DotNetOAuth.Test/Messaging/CollectionAssert.cs b/src/DotNetOAuth.Test/Messaging/CollectionAssert.cs new file mode 100644 index 0000000..b9f3da5 --- /dev/null +++ b/src/DotNetOAuth.Test/Messaging/CollectionAssert.cs @@ -0,0 +1,19 @@ +//-----------------------------------------------------------------------
+// <copyright file="CollectionAssert.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOAuth.Test.Messaging {
+ using System.Collections;
+ using System.Collections.Generic;
+ using Microsoft.VisualStudio.TestTools.UnitTesting;
+
+ internal class CollectionAssert<T> {
+ internal static void AreEquivalent(ICollection<T> expected, ICollection<T> actual) {
+ ICollection expectedNonGeneric = new List<T>(expected);
+ ICollection actualNonGeneric = new List<T>(actual);
+ CollectionAssert.AreEquivalent(expectedNonGeneric, actualNonGeneric);
+ }
+ }
+}
|