Exemplo n.º 1
0
        public void CancellableEnumerable_BeEqualTo_With_Equal_Should_NotThrow(CancellableRangeAsyncEnumerable actual, int[] expected)
        {
            // Arrange

            // Act
            actual.Must().BeAsyncEnumerableOf <int>().BeEqualTo(expected);

            // Assert
        }
Exemplo n.º 2
0
        public void CancellableEnumerable_BeEqualTo_With_NotEqual_Null_Should_Throw(CancellableRangeAsyncEnumerable actual, int[] expected, string message)
        {
            // Arrange

            // Act
            Action action = () => actual.Must().BeAsyncEnumerableOf <int>().BeEqualTo(expected);

            // Assert
            var exception = Assert.Throws <EqualToAssertionException <CancellableRangeAsyncEnumerable, int[]> >(action);

            Assert.Equal(actual, exception.Actual);
            Assert.Equal(expected, exception.Expected);
            Assert.Equal(message, exception.Message);
        }