blob: 15c105bdfb0786b44855f70702f4d68a853e328d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
using System.Collections.Generic;
using Xunit;
namespace MonoGame.Extended.Tests;
public static class CollectionAssert
{
public static void Equal<T>(IReadOnlyList<T> expected, IReadOnlyList<T> actual)
{
Assert.True(expected.Count == actual.Count, "The number of items in the collections does not match.");
Assert.All(actual, x => Assert.Contains(x, expected));
}
}
|