Esempio n. 1
0
        public void GetColumnNamesTest()
        {
            var tableName = "testingTable" + HelperObjectFactory.GetRandomInt(0);

            DatabaseWrapper.ExecuteSql($"CREATE TABLE {tableName}(a,b);");

            var columnNames = DatabaseWrapper.GetColumnNames(tableName);

            Assert.AreEqual(columnNames.Count, 2);
            Assert.IsTrue(columnNames.Contains("a"));

            DatabaseWrapper.ExecuteSql($"DROP TABLE {tableName};");
        }