예제 #1
0
        public void ListTableNamesTest()
        {
            using (var dbInfo = new DbInfo(_connString))
            {
                var tables = dbInfo.ListTableNames();

                // !!enumerate before dbInfo Dispose (inside using):

                var any = false;
                foreach (var table in tables)
                {
                    any = true;
                    TestContext.WriteLine($"{table}");
                }

                Assert.IsTrue(any);
            }
        }