public void BeforeEachTest() { _mockedDte = Mock.Of <DTE>(dte => dte.CommandLineArguments == ""); _cleanupDirectoriesMock = new Mock <Action <Dictionary <string, string> > >(); _userPromptServiceMock = new Mock <IUserPromptService>(); _objectUnderTest = new GoogleProjectTemplateWizard(_userPromptServiceMock.ToLazy()) { CleanupDirectories = _cleanupDirectoriesMock.Object }; _replacementsDictionary = new Dictionary <string, string> { { ReplacementsKeys.DestinationDirectoryKey, ProjectDirectoryBackslash }, { ReplacementsKeys.SolutionDirectoryKey, SolutionDirectoryBackslash }, { ReplacementsKeys.ProjectNameKey, ProjectName } }; }
public void BeforeEachTest() { _mockedDte = Mock.Of <DTE>(dte => dte.CommandLineArguments == ""); _pickProjectMock = new Mock <Func <string> >(); _deleteDirectoryMock = new Mock <Action <string, bool> >(); _objectUnderTest = new GoogleProjectTemplateWizard { PromptPickProjectId = _pickProjectMock.Object, DeleteDirectory = _deleteDirectoryMock.Object }; _replacementsDictionary = new Dictionary <string, string> { { DestinationDirectoryKey, ProjectDirectoryBackslash }, { SolutionDirectoryKey, SolutionDirectoryBackslash } }; }
public void BeforeEachTest() { _mockedDte = Mock.Of <DTE>(dte => dte.CommandLineArguments == ""); _pickProjectMock = new Mock <Func <GcpProject> >(); _cleanupDirectoriesMock = new Mock <Action <Dictionary <string, string> > >(); _objectUnderTest = new GoogleProjectTemplateWizard { PromptPickProjectId = _pickProjectMock.Object, CleanupDirectories = _cleanupDirectoriesMock.Object }; _replacementsDictionary = new Dictionary <string, string> { { ReplacementsKeys.DestinationDirectoryKey, ProjectDirectoryBackslash }, { ReplacementsKeys.SolutionDirectoryKey, SolutionDirectoryBackslash }, { ReplacementsKeys.ProjectNameKey, ProjectName } }; }