public void BeforeEach() { _dteMock = new Mock <DTE2>(); _dteMock.Setup(dte => dte.FullName).Returns(DefaultDevenvPath); PackageMock.Setup(p => p.Dte).Returns(_dteMock.Object); _objectUnderTest = new ToolsPathProvider(); }
protected override void BeforeEach() { _dteMock = new Mock <DTE>(); _dteMock.Setup(dte => dte.FullName).Returns(DefaultDevenvPath); PackageMock.Setup(p => p.GetService <SDTE, DTE>()).Returns(_dteMock.Object); _objectUnderTest = new ToolsPathProvider(); }
protected override void BeforeEach() { _environmentMock = new Mock <IEnvironment>(); _environmentMock.Setup(e => e.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86)) .Returns(DefaultX86ProgramFilesPath); PackageMock.Setup(p => p.GetMefServiceLazy <IEnvironment>()).Returns(_environmentMock.ToLazy()); _objectUnderTest = new ToolsPathProvider(); }
private InstallStartRemoteToolStepViewModel( InstallStartRemoteToolStepContent content, AttachDebuggerContext context) : base(context) { _installer = new RemoteToolInstaller( Context.PublicIp, Context.Credential.User, Context.Credential.Password, ToolsPathProvider.GetRemoteDebuggerToolsPath()); Content = content; }