示例#1
0
        public CodeFormatterTests(ITestOutputHelper output, MSBuildFixture msBuildFixture, TestProjectsPathFixture testProjectsPathFixture)
        {
            _output = output;

            testProjectsPathFixture.SetCurrentDirectory();
            msBuildFixture.RegisterInstance(_output);

            // For NetStandard projects to resolve framework references, the project.assets.json files must
            // be constructed by a NuGet restore.
            ProcessRunner.CreateProcess("dotnet", $"restore \"{CodeStyleSolutionFilePath}\"").Result.GetAwaiter().GetResult();
        }
示例#2
0
        public CodeFormatterTests(ITestOutputHelper output, MSBuildFixture msBuildFixture, TestProjectsPathFixture testProjectsPathFixture)
        {
            _output = output;

            testProjectsPathFixture.SetCurrentDirectory();
            msBuildFixture.RegisterInstance(_output);
        }