public async Task ReverseWithDoubleSourceNullSourceThrowsArgumentNullExceptionTest() { // Arrange // Arrange 'queryAdapter' parameter var queryAdapter = await GetQueryAdapterAsync(DisallowAll); // Arrange 'asyncSource' parameter IAsyncQueryable <double> asyncSource = null !; // Act // - // Assert await Assert.ThrowsAsync <ArgumentNullException>(async() => { await AsyncQueryable.Reverse <double>(asyncSource).ToListAsync().ConfigureAwait(false); }); }
public async Task ReverseWithNullableDecimalSourceIsEquivalentToReverseTest() { // Arrange // Arrange 'queryAdapter' parameter var queryAdapter = await GetQueryAdapterAsync(DisallowAll); // Arrange 'source' parameter var source = GetQueryable <decimal?>(); // Arrange 'asyncSource' parameter var asyncSource = queryAdapter.GetAsyncQueryable <decimal?>(); // Arrange 'expectedResult' parameter var expectedResult = Enumerable.Reverse <decimal?>(source); // Act var result = await AsyncQueryable.Reverse <decimal?>(asyncSource).ToListAsync().ConfigureAwait(false); // Assert Assert.Equal(expectedResult, result); }