public void RoundHouseFileService_SmokeTest() { var zipService = new RoundHouseFileService(); var workingDirectory = zipService.UnzipResourceFile(Resources.TestDirectory); Assert.IsTrue(Directory.Exists(workingDirectory)); }
public void Decompress() { var zipBytes = Resources.ExampleZip; //act RoundHouseFileService.Decompress(zipBytes, Path.GetTempPath()); //Assert Assert.Pass(); }
public void RoundHouseFileService_VersionFileScript_Exists() { var zipService = new RoundHouseFileService(); var workingDirectory = zipService.UnzipResourceFile(Resources.TestDirectory); var file = new FileInfo(Path.Combine(workingDirectory, DeploymentDirectoryStructureConstants.VersionFile)); bool result = file.Exists; zipService.CleanUpAppDataDirectory(); Assert.IsTrue(result); }
public void RoundHouseFileService_LegacyFolderName_Exists() { string folderName = DeploymentDirectoryStructureConstants.LegacyFolderName; var zipService = new RoundHouseFileService(); var workingDirectory = zipService.UnzipResourceFile(Resources.TestDirectory); var direxistsTest = new DirectoryInfo(Path.Combine(workingDirectory, folderName)); bool result = direxistsTest.Exists; zipService.CleanUpAppDataDirectory(); Assert.IsTrue(result); }