summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth.Test/Messaging/CollectionAssert.cs
blob: b9f3da500be0705c7a201d4c4e7d4faab6c5d416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
		}
	}
}