61 references to Empty
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (11)
CodeGen\CodeGenAsyncEHTests.cs (2)
29
return base.CompileAndVerify(source, targetFramework: TargetFramework.
Empty
, expectedOutput: expectedOutput, references: references, options: options);
940
var v = CompileAndVerify(source, s_asyncRefs, targetFramework: TargetFramework.
Empty
, options: TestOptions.DebugExe.WithMetadataImportOptions(MetadataImportOptions.All), expectedOutput: expected, symbolValidator: module =>
CodeGen\CodeGenAsyncLocalsTests.cs (2)
30
return base.CompileAndVerify(source, targetFramework: TargetFramework.
Empty
, expectedOutput: expectedOutput, references: references, options: options, verify: verify);
1247
CompileAndVerify(source, targetFramework: TargetFramework.
Empty
, references: s_asyncRefs, options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), symbolValidator: module =>
CodeGen\CodeGenDeconstructTests.cs (2)
7862
var comp2 = CompileAndVerify(source2, targetFramework: TargetFramework.
Empty
, expectedOutput:
7921
var comp2 = CompileAndVerify(source2, targetFramework: TargetFramework.
Empty
, expectedOutput:
CodeGen\CodeGenFunctionPointersTests.cs (2)
56
return CreateCompilation(source, references: references, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.
Empty
);
70
return CreateCompilationWithIL(source, ilStub, references: references, options: options ?? TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.RegularPreview, targetFramework: TargetFramework.
Empty
);
CodeGen\CodeGenImplicitlyTypeArraysTests.cs (1)
285
CompileAndVerify(testSrc, new MetadataReference[] { mscorlib17626 }, expectedOutput: "1", targetFramework: TargetFramework.
Empty
);
CodeGen\CodeGenShortCircuitOperatorTests.cs (2)
2016
var comp = CompileAndVerify(source, targetFramework: TargetFramework.
Empty
, references: new[] { MscorlibRef_v4_0_30316_17626 }, expectedOutput: @"print0
2073
var comp = CompileAndVerify(source, targetFramework: TargetFramework.
Empty
, references: new[] { MscorlibRef_v4_0_30316_17626 }, expectedOutput: @"print0
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_ILockStatement.cs (1)
786
targetFramework: Roslyn.Test.Utilities.TargetFramework.
Empty
,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\BindingAsyncTasklikeTests.cs (3)
194
CompileAndVerify(source, targetFramework: TargetFramework.
Empty
, references: new[] { MscorlibRef_v4_0_30316_17626 }, expectedOutput: "better");
516
CompileAndVerify(source, targetFramework: TargetFramework.
Empty
, references: new[] { MscorlibRef_v4_0_30316_17626 }, expectedOutput: "1");
567
CompileAndVerify(source, targetFramework: TargetFramework.
Empty
, references: new[] { MscorlibRef_v4_0_30316_17626 }, expectedOutput: "bbbb");
Semantics\InterpolationTests.cs (1)
906
source, references: new[] { MscorlibRef_v4_0_30316_17626, SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929 }, expectedOutput: "Hello, world!", targetFramework: TargetFramework.
Empty
);
Semantics\RawInterpolationTests.cs (1)
919
source, references: new[] { MscorlibRef_v4_0_30316_17626, SystemRef_v4_0_30319_17929, SystemCoreRef_v4_0_30319_17929 }, expectedOutput: "Hello, world!", targetFramework: TargetFramework.
Empty
);
Semantics\RefLocalsAndReturnsTests.cs (1)
1998
var comp = CreateCompilation(text, targetFramework: TargetFramework.
Empty
, references: new[] { MscorlibRef, SystemCoreRef });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (32)
Compilation\CompilationAPITests.cs (2)
2778
var compilation = CreateCompilation("", references: Array.Empty<MetadataReference>(), targetFramework: TargetFramework.
Empty
);
2968
var compilation = CreateCompilation("", references: Array.Empty<MetadataReference>(), targetFramework: TargetFramework.
Empty
);
Symbols\CovariantReturnTests.cs (18)
410
targetFramework: TargetFramework.
Empty
,
429
targetFramework: TargetFramework.
Empty
,
465
var result = CreateCompilation(assignments, references: references, targetFramework: TargetFramework.
Empty
);
487
var result = CreateCompilation(assignments, references: references, targetFramework: TargetFramework.
Empty
);
514
targetFramework: TargetFramework.
Empty
,
544
targetFramework: TargetFramework.
Empty
)
3871
var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.
Empty
, parseOptions: parseOptions);
3888
var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.
Empty
);
3947
var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.
Empty
, parseOptions: parseOptions);
4007
var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.
Empty
);
4113
var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.
Empty
, parseOptions: parseOptions);
4130
var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.
Empty
);
4228
var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.
Empty
, parseOptions: parseOptions);
4245
var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.
Empty
);
4337
var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.
Empty
, parseOptions: parseOptions);
4354
var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.
Empty
);
4500
var baseCompilation = CreateCompilation(baseSource, references: new[] { corlibRef }, targetFramework: TargetFramework.
Empty
, parseOptions: parseOptions);
4526
var comp = CreateCompilation(compilationSource, references: references, parseOptions: parseOptions, targetFramework: TargetFramework.
Empty
);
Symbols\DefaultInterfaceImplementationTests.cs (12)
49608
targetFramework: TargetFramework.
Empty
);
49619
targetFramework: TargetFramework.
Empty
);
49653
targetFramework: TargetFramework.
Empty
);
49662
targetFramework: TargetFramework.
Empty
);
49769
targetFramework: TargetFramework.
Empty
);
49778
targetFramework: TargetFramework.
Empty
);
49919
targetFramework: TargetFramework.
Empty
);
50683
var attributes = CreateCompilation(NoPiaAttributes, options: TestOptions.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.
Empty
);
50711
var piaCompilation = CreateCompilation(pia, options: TestOptions.ReleaseDll, references: baseReferences, targetFramework: TargetFramework.
Empty
);
50749
var pia2Compilation = CreateCompilation(pia2, baseReferences, options: TestOptions.ReleaseDll, targetFramework: TargetFramework.
Empty
);
50753
var compilation1 = CreateCompilation(consumer1, options: TestOptions.ReleaseDll, references: baseReferences.Concat(new[] { piaCompilation.ToMetadataReference(embedInteropTypes: true) }), targetFramework: TargetFramework.
Empty
);
50757
var compilation2 = CreateCompilation(consumer2, options: TestOptions.ReleaseExe, references: baseReferences.Concat(new[] { reference2, pia2Reference }), targetFramework: TargetFramework.
Empty
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1275
return CreateCompilation(source, allReferences, options, parseOptions, TargetFramework.
Empty
, assemblyName, sourceFileName);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (5)
Metadata\WinMdEventTests.cs (3)
330
targetFramework: TargetFramework.
Empty
,
2443
targetFramework: TargetFramework.
Empty
,
3499
var compilation = CreateCompilationWithIL("", il, targetFramework: TargetFramework.
Empty
, references: WinRtRefs);
Metadata\WinMdMetadataTests.cs (2)
158
CompileAndVerify(text, WinRtRefs, targetFramework: TargetFramework.
Empty
, expectedOutput: "#FF000000");
235
targetFramework: TargetFramework.
Empty
,
Microsoft.CodeAnalysis.Test.Utilities (1)
TargetFrameworkUtil.cs (1)
302
TargetFramework.
Empty
=> ImmutableArray<MetadataReference>.Empty,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (1)
2836
targetFramework:=TargetFramework.
Empty
)
PDB\PDBAsyncTests.vb (1)
943
Dim v = CompileAndVerifyEx(src, references:=LatestVbReferences, options:=TestOptions.DebugDll, targetFramework:=TargetFramework.
Empty
)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\CompilationAPITests.vb (2)
1807
Dim compilation = CreateCompilation("", references:={}, targetFramework:=TargetFramework.
Empty
)
1894
Dim compilation = CreateCompilation("", references:={}, targetFramework:=TargetFramework.
Empty
)