Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 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);
 }