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"); }
public void initializeForTests() { DatabaseModifier.CreateTable(typeof(Department)); DatabaseModifier.CreateTable(typeof(Person)); }