public void ExecuteDelete() { var name1 = d.FindName(7); d.DeleteName(7); var name2 = d.FindName(7); d.InsertName("mark"); Assert.AreEqual("mark", name1.name); Assert.IsNull(name2); }
public void Init() { System.Diagnostics.Process.Start("cmd", "/C del Test.mdb"); d = new TestDatabase("Test.mdb"); d.CreateTables(); d.SyncProcs(); var expected = new string[] { "sean", "dave", "mike", "carl", "paul", "neil", "mark" }; foreach (var name in expected) { d.InsertName(name); } }
public void Init() { System.Diagnostics.Process.Start("cmd", "/C del Test.mdb"); d = new TestDatabase("Test.mdb"); d.CreateTables(); d.SyncProcs(); var expected = new string[] { "sean", "dave", "mike", "carl", "paul", "neil", "mark" }; foreach (var name in expected) d.InsertName(name); }