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