コード例 #1
0
        public WindowsEnvironmentPathTests()
        {
            _reporter         = new BufferedReporter();
            _mockPathInternal = new MockPathInternal();
            var mockEnvironmentProvider   = new MockEnvironmentProvider(_mockPathInternal);
            var mockEnvironmentPathEditor = new MockEnvironmentPathEditor(_mockPathInternal);

            _windowsEnvironmentPath = new WindowsEnvironmentPath(
                _toolsPath,
                CliFolderPathCalculator.WindowsNonExpandedToolsShimPath,
                mockEnvironmentProvider,
                mockEnvironmentPathEditor,
                _reporter
                );
        }
コード例 #2
0
        public WindowsEnvironmentPathTests()
        {
            _reporter         = new BufferedReporter();
            _mockPathInternal = new MockPathInternal();
            var mockEnvironmentProvider   = new MockEnvironmentProvider(_mockPathInternal);
            var mockEnvironmentPathEditor = new MockEnvironmentPathEditor(_mockPathInternal);

            _windowsEnvironmentPath = new WindowsEnvironmentPath(
                _toolsPath,
                @"%USERPROFILE%\.dotnet\tools",
                mockEnvironmentProvider,
                mockEnvironmentPathEditor,
                _reporter
                );
        }