public void Enumerable_BeEqualTo_With_Equal_Should_NotThrow(RangeAsyncEnumerable actual, int[] expected) { // Arrange // Act actual.Must().BeAsyncEnumerableOf <int>().BeEqualTo(expected); // Assert }
public void Enumerable_BeEqualTo_With_NotEqual_Null_Should_Throw(RangeAsyncEnumerable actual, int[] expected, string message) { // Arrange // Act Action action = () => actual.Must().BeAsyncEnumerableOf <int>().BeEqualTo(expected); // Assert var exception = Assert.Throws <EqualToAssertionException <RangeAsyncEnumerable, int[]> >(action); Assert.Equal(actual, exception.Actual); Assert.Equal(expected, exception.Expected); Assert.Equal(message, exception.Message); }