예제 #1
0
        public void CreateDbUsingProviderTest()
        {
            string name = DateTime.Now.Ticks.ToString();
            var provider = new Provider(name);

            bool exists = provider.VerifyDb();

            Assert.AreEqual(true, exists);
            File.Delete(name);
        }
예제 #2
0
        public void CreateDbInFolderUsingProviderTest()
        {
            string fileName = DateTime.Now.Ticks.ToString() + ".kpsdb";
            string folderName = DateTime.Now.Ticks.ToString();
            var provider = new Provider(fileName, folderName);

            var fullFileName = Path.Combine(folderName, fileName);

            bool exists = provider.VerifyDb();

            Assert.AreEqual(true, exists);
            File.Delete(fullFileName);
            Directory.Delete(folderName, true);
        }