public void GenericEnumerable_BeEqualTo_With_Equal_Should_NotThrow(RangeGenericAsyncEnumerable actual, int[] expected) { // Arrange // Act actual.Must().BeAsyncEnumerableOf <int>().BeEqualTo(expected); // Assert }
public void GenericEnumerable_BeEqualTo_With_NotEqual_Should_Throw(RangeGenericAsyncEnumerable actual, int[] expected, string message) { // Arrange // Act Action action = () => actual.Must().BeAsyncEnumerableOf <int>().BeEqualTo(expected); // Assert var exception = Assert.Throws <AsyncEnumerableAssertionException <RangeGenericAsyncEnumerable, int, int[]> >(action); Assert.Same(actual, exception.Actual.Instance); Assert.Same(expected, exception.Expected); Assert.Equal(message, exception.Message); }