public async Task DistinctWithInt64SourceWithComparerIsEquivalentToDistinctTest()
        {
            // Arrange

            // Arrange 'queryAdapter' parameter
            var queryAdapter = await GetQueryAdapterAsync(DisallowAll);

            // Arrange 'source' parameter
            var source = GetQueryable <long>();

            // Arrange 'asyncSource' parameter
            var asyncSource = queryAdapter.GetAsyncQueryable <long>();

            // Arrange 'comparer' parameter
            var comparer = EqualityComparer <long> .Default;

            // Arrange 'expectedResult' parameter
            var expectedResult = Enumerable.Distinct <long>(source, comparer);

            // Act
            var result = await AsyncQueryable.Distinct <long>(asyncSource, comparer).ToListAsync().ConfigureAwait(false);

            // Assert
            Assert.Equal(expectedResult, result);
        }
        public async Task DistinctWithDoubleSourceNullSourceThrowsArgumentNullExceptionTest()
        {
            // 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.Distinct <double>(asyncSource).ToListAsync().ConfigureAwait(false);
            });
        }
        public async Task DistinctWithInt64SourceWithComparerNullSourceThrowsArgumentNullExceptionTest()
        {
            // Arrange

            // Arrange 'queryAdapter' parameter
            var queryAdapter = await GetQueryAdapterAsync(DisallowAll);

            // Arrange 'asyncSource' parameter
            IAsyncQueryable <long> asyncSource = null !;

            // Arrange 'comparer' parameter
            var comparer = EqualityComparer <long> .Default;

            // Act
            // -

            // Assert
            await Assert.ThrowsAsync <ArgumentNullException>(async() =>
            {
                await AsyncQueryable.Distinct <long>(asyncSource, comparer).ToListAsync().ConfigureAwait(false);
            });
        }
        public async Task DistinctWithNullableDecimalSourceIsEquivalentToDistinctTest()
        {
            // 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.Distinct <decimal?>(source);

            // Act
            var result = await AsyncQueryable.Distinct <decimal?>(asyncSource).ToListAsync().ConfigureAwait(false);

            // Assert
            Assert.Equal(expectedResult, result);
        }