45 references to WinRtRefs
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenDeconstructTests.cs (4)
7834
var comp1 = CreateEmptyCompilation(source1,
WinRtRefs
, TestOptions.ReleaseWinMD, TestOptions.Regular);
7864
Handler", references:
WinRtRefs
.Concat(new[] { ValueTupleRef, comp1.ToMetadataReference() }));
7881
var comp1 = CreateEmptyCompilation(source1,
WinRtRefs
, TestOptions.ReleaseWinMD, TestOptions.Regular);
7927
Handler", references:
WinRtRefs
.Concat(new[] { ValueTupleRef, comp1.ToMetadataReference() }));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Attributes\AttributeTests_WellKnownAttributes.cs (11)
9779
var compilation1 = CreateEmptyCompilation(source1,
WinRtRefs
, TestOptions.ReleaseDll);
9844
var compilation2 = CreateEmptyCompilation(source2,
WinRtRefs
.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll);
9872
compilation2 = CreateEmptyCompilation(source2,
WinRtRefs
.Concat(new[] { compilation1.EmitToImageReference() }), TestOptions.ReleaseDll);
9905
? CreateEmptyCompilation(new[] { (libSrc, "libSrc"), (src, "src") },
WinRtRefs
, TestOptions.ReleaseDll)
9907
references:
WinRtRefs
.Append(CreateEmptyCompilation(new[] { libSrc },
WinRtRefs
, TestOptions.ReleaseDll).EmitToImageReference()).ToArray(),
10171
var compilation1 = CreateEmptyCompilation(source1,
WinRtRefs
, TestOptions.ReleaseDll);
10208
var compilation1 = CreateEmptyCompilation(source1,
WinRtRefs
, TestOptions.ReleaseDll);
10224
var compilation2 = CreateEmptyCompilation(source2,
WinRtRefs
.Concat(new[] { new CSharpCompilationReference(compilation1) }), TestOptions.ReleaseDll);
13679
CreateEmptyCompilation(code, references:
WinRtRefs
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics(
13731
CreateEmptyCompilation(code, references:
WinRtRefs
, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp7_3)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
SymbolDisplay\SymbolDisplayTests.cs (1)
4706
var comp = CreateEmptyCompilation(source,
WinRtRefs
, TestOptions.ReleaseWinMD);
Symbols\MissingSpecialMember.cs (2)
596
}.Concat(
WinRtRefs
).ToArray();
937
}.Concat(
WinRtRefs
).ToArray();
Symbols\Source\ClsComplianceTests.cs (1)
3314
var comp = CreateEmptyCompilation(source,
WinRtRefs
, options: TestOptions.ReleaseWinMD);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (22)
CodeGen\WinMdEventTests.cs (4)
623
var comp1 = CreateEmptyCompilation(source1,
WinRtRefs
, TestOptions.ReleaseWinMD, TestOptions.Regular, "Lib");
627
var comp2 = CreateEmptyCompilation(source2,
WinRtRefs
.Concat(new MetadataReference[] { new CSharpCompilationReference(comp1), serializationRef, SystemXmlRef }), TestOptions.ReleaseExe);
648
var comp = CreateEmptyCompilation(source,
WinRtRefs
, TestOptions.ReleaseWinMD, TestOptions.Regular7);
668
var comp = CreateEmptyCompilation(source,
WinRtRefs
, TestOptions.ReleaseWinMD);
CodeGen\WinRTCollectionTests.cs (3)
48
var comp = CreateEmptyCompilation(source, references:
WinRtRefs
);
354
var comp = CreateEmptyCompilation(source, references:
WinRtRefs
);
7418
var comp = CreateEmptyCompilation(source, references:
WinRtRefs
);
Metadata\WinMdEventTests.cs (13)
2839
var comp = CreateEmptyCompilation(source,
WinRtRefs
.Concat(new[] { ilRef }));
2914
var comp = CreateEmptyCompilation(source,
WinRtRefs
, TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug));
2958
var comp = CreateEmptyCompilation(source,
WinRtRefs
.Concat(new[] { ilRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug));
3027
var comp = CreateEmptyCompilation(source,
WinRtRefs
.Concat(new[] { interfaceILRef, baseILRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug));
3093
var comp = CreateEmptyCompilation(source,
WinRtRefs
.Concat(new[] { ilRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug));
3165
var comp = CreateEmptyCompilation(source,
WinRtRefs
.Concat(new[] { ilRef }));
3192
var comp = CreateEmptyCompilation(source,
WinRtRefs
.Concat(new[] { ilRef }));
3218
var comp = CreateEmptyCompilation(source,
WinRtRefs
.Concat(new[] { interfaceILRef, baseILRef }));
3249
var comp = CreateEmptyCompilation(source,
WinRtRefs
.Concat(new[] { interfaceILRef, baseILRef }));
3288
var comp = CreateEmptyCompilation(source,
WinRtRefs
, TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug));
3379
CreateEmptyCompilation(source,
WinRtRefs
, TestOptions.ReleaseWinMD).VerifyDiagnostics(
3499
var compilation = CreateCompilationWithIL("", il, targetFramework: TargetFramework.Empty, references:
WinRtRefs
);
3556
var comp = CreateEmptyCompilation("",
WinRtRefs
.Concat(new[] { ilRef }), TestOptions.DebugDll.WithMetadataImportOptions(MetadataImportOptions.All));
Metadata\WinMdMetadataTests.cs (2)
158
CompileAndVerify(text,
WinRtRefs
, targetFramework: TargetFramework.Empty, expectedOutput: "#FF000000");
234
WinRtRefs
.Concat(new[] { AssemblyMetadata.CreateFromImage(TestResources.WinRt.W1).GetReference() }),
Microsoft.CodeAnalysis.Test.Utilities (1)
TargetFrameworkUtil.cs (1)
185
.. TestBase.
WinRtRefs
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
CompilationTestUtils.vb (1)
166
Return CreateEmptyCompilationWithReferences(source,
WinRtRefs
)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestWorkspace_XmlConsumption.cs (2)
883
references = new List<MetadataReference>(TestBase.
WinRtRefs
.Length);
884
references.AddRange(TestBase.
WinRtRefs
);