CollectionAssert.cs 399 B

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