48 references to CSharpHelpers
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (48)
ProjectSystemShim\CPS\AdditionalPropertiesTests.cs (6)
30using (var project = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test")) 56using var cpsProject = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test"); 83using var cpsProject = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test"); 127using var cpsProject = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test"); 150_ = CSharpHelpers.CreateCSharpProject(environment, "Test", hierarchy); 160using (var project = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test"))
ProjectSystemShim\CPS\AnalyzersTests.cs (3)
33using var project = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test"); 61using var project = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test"); 78using (var project = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test"))
ProjectSystemShim\CPS\CSharpCompilerOptionsTests.cs (12)
31using var project = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test", commandLineArguments: @"/doc:DocFile.xml"); 40using var project = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test", commandLineArguments: @"/doc:"); 49using var project = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test", commandLineArguments: @"/warnaserror:CS1111"); 65using var project = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test", commandLineArguments: $"/out:{initialObjPath}"); 112await Assert.ThrowsAsync<InvalidProjectDataException>(() => CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test2", binOutputPath: "")); 113await Assert.ThrowsAsync<InvalidProjectDataException>(() => CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test3", binOutputPath: "Test.dll")); 122using IWorkspaceProjectContext projectContext = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test", initialGuid); 134using IWorkspaceProjectContext projectContext = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test"); 145using IWorkspaceProjectContext project = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test"); 160using IWorkspaceProjectContext project = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test"); 182using var cpsProject = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test"); 195using var cpsProject = await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test");
ProjectSystemShim\CPS\CSharpReferencesTests.cs (1)
21using static CSharpHelpers;
ProjectSystemShim\CPS\SourceFileHandlingTests.cs (1)
20using static CSharpHelpers;
ProjectSystemShim\LegacyProject\AnalyzersTests.cs (10)
37var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 56var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 75var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 106var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 129var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 145var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 172var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 207var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 236await CSharpHelpers.CreateCSharpCPSProjectAsync(environment, "Test", binOutputPath: @"C:\test.dll", $"/ruleset:\"{ruleSetFile.Path}\""); 241var project = CSharpHelpers.CreateCSharpProject(environment, "Test");
ProjectSystemShim\LegacyProject\CSharpCompilerOptionsTests.cs (8)
31var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 45var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 59var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 92var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 108var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 143var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 187_ = CSharpHelpers.CreateCSharpProject(environment, "Test", hierarchy); 218_ = CSharpHelpers.CreateCSharpProject(environment, "Test", hierarchy);
ProjectSystemShim\LegacyProject\OutputPathTests.cs (1)
33var project = CSharpHelpers.CreateCSharpProject(environment, "WithRefPath", hierarchyWithRefPath);
ProjectSystemShim\LegacyProject\SourceFileHandlingTests.cs (5)
24var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 39var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 52var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 65var project = CSharpHelpers.CreateCSharpProject(environment, "Test"); 79var project = CSharpHelpers.CreateCSharpProject(environment, "Test");
ProjectSystemShim\LifetimeTests.cs (1)
23var project = ObjectReference.CreateFromFactory(() => CSharpHelpers.CreateCSharpProject(environment, "Test"));