示例#1
0
        public static void TestRunInitialize(TestContext context)
        {
            try
            {
                // Try to delete the snapshot in case it was left over from aborted test runs
                DatabaseSnapshot.DeleteSnapShot();
            }
            catch { /* this should fail with snapshot does not exist */ }

            DatabaseSnapshot.SetupStoredProcedures();
            DatabaseSnapshot.CreateSnapShot();
        }
 public void TestCleanup()
 {
     DatabaseSnapshot.RestoreSnapShot();
 }
示例#3
0
 public static void TestRunCleanup()
 {
     DatabaseSnapshot.DeleteSnapShot();
 }