mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-16 15:39:29 +00:00
15 lines
399 B
C#
15 lines
399 B
C#
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));
|
|
}
|
|
}
|