public void TestCreateMethod()
        {
            DatabaseModifier.CreateTable(typeof(Department));
            DatabaseModifier.CreateTable(typeof(Person));
            List <string> tablesInDatabase = CheckTablesInDatabase();

            for (int i = 0; i < tablesInDatabase.Count; i++)
            {
                TestContext.WriteLine(tablesInDatabase[i]);
            }
            CollectionAssert.Contains(tablesInDatabase, "PERSONS");
        }
예제 #2
0
 public void initializeForTests()
 {
     DatabaseModifier.CreateTable(typeof(Department));
     DatabaseModifier.CreateTable(typeof(Person));
 }