Ejemplo n.º 1
0
        public void DeleteDatabaseTest()
        {
            //Arrange
            var fullPath   = String.Format(@"{0}\{1}", _testDir, DbFilename);
            var controller = new SqlCompactController();

            controller.CreateDb(fullPath);

            //Act
            controller.DeleteDb(fullPath);

            //Assert
            Assert.IsTrue(!dInfo.EnumerateFiles().Any());
        }
Ejemplo n.º 2
0
 public void Cleanup()
 {
     businessContext.Dispose();
     dBcontroller.DeleteDb(DbFullPath);
 }