public static void Init() { Console.WriteLine(EnvironmentRepository.GetVsixToolsPath()); if (Computer.FileSystem.DirectoryExists(EnvironmentRepository.GetVsixToolsPath())) { Computer.FileSystem.DeleteDirectory(EnvironmentRepository.GetVsixToolsPath(), DeleteDirectoryOption.DeleteAllContents); } if (Computer.FileSystem.DirectoryExists(EnvironmentRepository.GetVsixLibPath())) { Computer.FileSystem.DeleteDirectory(EnvironmentRepository.GetVsixLibPath(), DeleteDirectoryOption.DeleteAllContents); } Computer.FileSystem.CopyDirectory(SourceToolsPath, EnvironmentRepository.GetVsixToolsPath()); Computer.FileSystem.CopyDirectory(SourceLibPath, EnvironmentRepository.GetVsixLibPath()); }
public void GetVsixLibPath_should_return_lib_directory_in_executing_assembly_directory_path() { // Arrange var envRepos = new EnvironmentRepository(); // Act var result = envRepos.GetVsixLibPath(); // Assert Assert.That(result, Is.StringMatching(ToShadowCopyTargetPattern(@"lib"))); }