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); }
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); }