21 references to CreateCompilationWithCSharp
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenAwaitForeachTests.cs (1)
7472
CreateCompilationWithCSharp
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9)
CodeGen\CodeGenDynamicTests.cs (4)
15339
var comp =
CreateCompilationWithCSharp
(source, options: TestOptions.ReleaseExe);
15343
comp =
CreateCompilationWithCSharp
(source, options: TestOptions.DebugExe);
15384
var comp =
CreateCompilationWithCSharp
(source, options: TestOptions.ReleaseExe);
15388
comp =
CreateCompilationWithCSharp
(source, options: TestOptions.DebugExe);
CodeGen\CodeGenForEachTests.cs (1)
3684
var comp =
CreateCompilationWithCSharp
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
13467
var compilation =
CreateCompilationWithCSharp
(@"
Diagnostics\DiagnosticAnalyzerTests.cs (1)
4419
var compilation =
CreateCompilationWithCSharp
(new[] { tree, CSharpSyntaxTree.ParseText(IsExternalInitTypeDefinition) });
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\InterpolationTests.cs (1)
17218
var comp =
CreateCompilationWithCSharp
(new[] { code, handler });
Semantics\NullableReferenceTypesTests.cs (2)
2157
var comp =
CreateCompilationWithCSharp
(source, options: WithNullableEnable());
2191
var comp =
CreateCompilationWithCSharp
(source, options: WithNullableEnable());
Semantics\RawInterpolationTests_Handler.cs (1)
12638
var comp =
CreateCompilationWithCSharp
(new[] { code, handler });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\CheckedUserDefinedOperatorsTests.cs (9)
6306
var compilation1 =
CreateCompilationWithCSharp
(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview);
6316
compilation1 =
CreateCompilationWithCSharp
(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11);
6327
var compilation3 =
CreateCompilationWithCSharp
(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() });
6411
var compilation1 =
CreateCompilationWithCSharp
(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview);
6421
compilation1 =
CreateCompilationWithCSharp
(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11);
6432
var compilation3 =
CreateCompilationWithCSharp
(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() });
6526
var compilation1 =
CreateCompilationWithCSharp
(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.RegularPreview);
6538
compilation1 =
CreateCompilationWithCSharp
(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11);
6551
var compilation3 =
CreateCompilationWithCSharp
(source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular10, references: new[] { compilation2.ToMetadataReference() });