public void Extract_WithRealConnection_ShouldReturn_CollectionOf_DbIndex() { using (var connection = new OleDbConnectionWrapper(TestDatabase.GetConnection())) { var extractor = new OleDbTableIndexExtractor(connection); connection.Open(); var results = extractor.Extract("test_1").ToArray(); Assert.AreEqual(2, results.Length); } }
public void SetUp() { _connection = new Mock <IOleDbConnectionWrapper>(); _extractor = new OleDbTableIndexExtractor(_connection.Object); }