7 writes to this_TestCaseProject
dotnet-svcutil-lib.Tests (7)
GlobalToolTests.cs (2)
129this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), null, CancellationToken.None); 157this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testClientFolder}.csproj"), null, CancellationToken.None);
TestInit.cs (5)
211this_TestCaseProject = ProjectUtils.GetProject(projectPath, targetFramework, forceNew: true, build: true, logger: this_TestCaseLogger); 215this_TestCaseProject = this_TestGroupProject; 235this_TestCaseProject = ProjectUtils.GetProject(projectPath, targetFramework, forceNew: true, build: true, logger: this_TestCaseLogger, globalTool: true); 259this_TestCaseProject = MSBuildProj.FromPathAsync(projectPath, null, CancellationToken.None).Result; 263this_TestCaseProject = g_StarterProject;
24 references to this_TestCaseProject
dotnet-svcutil-lib.Tests (24)
E2ETests.cs (9)
52ProcessRunner.ProcessResult processResult = this_TestCaseProject.RunSvcutil(options, expectSuccess, this_TestCaseLogger); 56ValidateTest(options, this_TestCaseProject.DirectoryPath, processResult.ExitCode, processResult.OutputText, expectSuccess); 230CreateGlobalJson(this_TestGroupOutputDir, this_TestCaseProject.SdkVersion); 240this_TestCaseProject.AddDependency(ProjectDependency.FromAssembly(assemblyPath)); 241this_TestCaseProject.AddDependency(ProjectDependency.FromProject(libProjPath)); 242this_TestCaseProject.SaveAsync(this_TestCaseLogger, CancellationToken.None).Wait(); 244ProcessRunner.ProcessResult ret = this_TestCaseProject.BuildAsync(true, this_TestCaseLogger, CancellationToken.None).Result; 373File.Copy(f, Path.Combine(this_TestCaseProject.DirectoryPath, Path.GetFileName(f))); 381dstParamsFile = this_TestCaseProject.AddFakeServiceReference(srcParamsFilePath, referenceFolderName + suffix, addNamespace);
GlobalToolTests.cs (6)
22var processResult = this_TestCaseProject.RunSvcutil(options, expectSuccess, this_TestCaseLogger, globalTool: true); 25ValidateTest(options, this_TestCaseProject.DirectoryPath, processResult.ExitCode, processResult.OutputText, expectSuccess); 158ProcessRunner.ProcessResult ret = await this_TestCaseProject.BuildAsync(true, this_TestCaseLogger, CancellationToken.None); 180this_TestCaseProject.TargetFramework = targetFramework; 181await this_TestCaseProject.SaveAsync(this_TestCaseLogger, System.Threading.CancellationToken.None); 196options.Project = this_TestCaseProject;
TestInit.cs (2)
524WriteLog("Working dir: " + this_TestCaseProject?.DirectoryPath); 528WriteLog("Test project: " + this_TestCaseProject?.FullPath);
UnitTest.cs (7)
23using (var cds = new CurrentDirectorySetter(this_TestCaseProject.DirectoryPath)) 25Directory.SetCurrentDirectory(this_TestCaseProject.DirectoryPath); 40ValidateTest(options, this_TestCaseProject.DirectoryPath, exitCode, outputText, expectSuccess); 240.Replace("$projectPath$", this_TestCaseProject.FullPath) 332File.WriteAllText(jsonFileDstPath, File.ReadAllText(jsonFileDstPath).Replace("$testCaseProject$", this_TestCaseProject.FullPath.Replace("\\", "/"))); 341ValidateTest(options.ToString(), this_TestCaseProject.DirectoryPath, 0, string.Empty, true); 349var optionsJson = options.Json.Replace(this_TestCaseProject.FullPath.Replace("\\", "/"), "$testCaseProject$");