Esempio n. 1
0
            public void ReturnsInstance()
            {
                // Arrange
                var expression = Expression.Constant(new[] { 5.5 });

                // Act
                var enumerable = new TestDbAsyncEnumerable <double>(expression);

                // Assert
                Assert.IsType <TestDbAsyncEnumerable <double> >(enumerable);
            }
Esempio n. 2
0
            public void ReturnsAsyncEnumerator()
            {
                // Arrange
                var expression = Expression.Constant(new[] { 5.5 });
                var enumerable = new TestDbAsyncEnumerable <double>(expression);

                // Act
                var asyncEnumerator = enumerable.GetAsyncEnumerator();

                // Assert
                Assert.IsAssignableFrom <IDbAsyncEnumerator <double> >(asyncEnumerator);
            }
Esempio n. 3
0
            public void ReturnsProvider()
            {
                // Arrange
                var expression = Expression.Constant(new[] { 5.5 });
                var enumerable = new TestDbAsyncEnumerable <double>(expression);
                var queryable  = (IQueryable)enumerable;

                // Act
                var provider = queryable.Provider;

                // Assert
                Assert.IsAssignableFrom <IQueryProvider>(provider);
            }
        public TestDbAsyncEnumerableTests()
        {
            var expression = Expression.Constant(new[] { 5.5 });

            testDbAsyncEnumerable = new TestDbAsyncEnumerable <double>(expression);
        }