public void ReturnsInstance() { // Arrange var expression = Expression.Constant(new[] { 5.5 }); // Act var enumerable = new TestDbAsyncEnumerable <double>(expression); // Assert Assert.IsType <TestDbAsyncEnumerable <double> >(enumerable); }
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); }
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); }