示例#1
0
        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);
            }
        }
示例#2
0
 public void SetUp()
 {
     _connection = new Mock <IOleDbConnectionWrapper>();
     _extractor  = new OleDbTableIndexExtractor(_connection.Object);
 }