173 references to InterpolatedStringHandlerAttribute
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
CodeGen\CodeGenCallTests.cs (8)
1854
new[] { source,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute },
1933
new[] { source,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute },
2015
new[] { source,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute },
2051
new[] { source,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute },
2133
new[] { source,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute },
2213
new[] { source,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute },
2295
new[] { source,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute },
2331
new[] { source,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute },
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (61)
FlowAnalysis\RegionAnalysisTests.cs (2)
9038
" +
InterpolatedStringHandlerAttribute
;
9087
" +
InterpolatedStringHandlerAttribute
;
OverloadResolutionPriorityTests.cs (2)
2118
var verifier = CompileAndVerify([handler, executable, OverloadResolutionPriorityAttributeDefinition,
InterpolatedStringHandlerAttribute
], expectedOutput: "12").VerifyDiagnostics();
2141
var comp = CreateCompilation([handler, OverloadResolutionPriorityAttributeDefinition,
InterpolatedStringHandlerAttribute
]);
Semantics\ExtensionTests.cs (14)
22182
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput).VerifyDiagnostics();
22218
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
22332
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput).VerifyDiagnostics();
22368
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
22816
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
22846
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
22930
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
22959
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
23031
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
23056
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
23141
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
23170
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
23243
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
23282
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
Semantics\ExtensionTests2.cs (41)
15266
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
15378
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
15467
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
15567
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
15642
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
15781
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
15926
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
16030
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16115
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
16230
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16403
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16532
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16681
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16781
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
16870
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16948
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
17023
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17154
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17287
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
17391
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17465
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
17583
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17738
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17852
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17973
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18119
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18197
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
18265
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18391
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18561
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18635
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
18747
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18880
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18971
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe.WithAllowUnsafe(true));
19055
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
19166
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
19290
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
19400
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
19513
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
19606
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
19712
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe.WithAllowUnsafe(true));
Semantics\ParamsCollectionTests.cs (1)
3109
CompileAndVerify([source,
InterpolatedStringHandlerAttribute
], expectedOutput: """
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (1)
19622
var comp = CreateCompilation(new[] { code, CompilerFeatureRequiredAttribute,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute });
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (5)
IOperation\IOperationTests_IInterpolatedStringOperation.cs (5)
1790
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code,
InterpolatedStringHandlerAttribute
}, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
1875
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code,
InterpolatedStringHandlerAttribute
}, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
1930
VerifyOperationTreeAndDiagnosticsForTest<VariableDeclaratorSyntax>(new[] { code,
InterpolatedStringHandlerAttribute
}, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
4464
VerifyOperationTreeAndDiagnosticsForTest<InvocationExpressionSyntax>(new[] { code,
InterpolatedStringHandlerAttribute
}, expectedOperationTree, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
5645
VerifyFlowGraphAndDiagnosticsForTest<BlockSyntax>(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedFlowGraph, expectedDiagnostics, parseOptions: TestOptions.RegularPreview);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (98)
Semantics\InterpolationTests.cs (63)
3246
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerAttribute
});
4404
var comp = CreateCompilation(new[] { source,
InterpolatedStringHandlerAttribute
});
4593
CompileAndVerify(new[] { source,
InterpolatedStringHandlerAttribute
}, expectedOutput: "literal:l");
9242
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
});
9305
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
});
10169
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10272
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.DebugExe);
10419
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10518
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10616
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10670
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10769
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10868
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10966
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11065
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11150
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11262
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11514
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11699
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11799
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11866
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11954
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
14244
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14289
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14334
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14377
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14426
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14482
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14578
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14677
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14800
var comp = CreateCompilation([source,
InterpolatedStringHandlerAttribute
], targetFramework: TargetFramework.StandardAndCSharp);
14952
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14955
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
14984
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
15021
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15024
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
15061
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15064
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
15101
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15113
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
15159
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15162
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
15193
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15196
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
15227
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15230
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
15264
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
15302
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15315
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50);
15357
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15360
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50);
15408
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
15449
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
15485
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
15536
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
15579
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15601
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50);
15641
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
18014
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"1");
18055
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"1");
18106
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"12");
18152
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"12");
18486
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
});
Semantics\NullableReferenceTypesTests.cs (4)
68437
",
InterpolatedStringHandlerAttribute
},
68474
",
InterpolatedStringHandlerAttribute
},
68525
",
InterpolatedStringHandlerAttribute
},
69161
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
});
Semantics\RawInterpolationTests_Handler.cs (27)
1618
var verifier = CompileAndVerify(new[] { code,
InterpolatedStringHandlerAttribute
});
2682
var comp = CreateCompilation(new[] { source,
InterpolatedStringHandlerAttribute
});
2894
CompileAndVerify(new[] { source,
InterpolatedStringHandlerAttribute
}, expectedOutput: "literal:l");
7298
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
});
7365
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
});
10553
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10604
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10655
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10700
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10751
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10812
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
10911
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
11016
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
11054
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
11089
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
11131
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
11179
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
11212
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
11245
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
11279
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
11317
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
11358
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
13035
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"1");
13076
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"1");
13129
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"12");
13175
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"12");
13488
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
});
Semantics\RefEscapingTests.cs (4)
4786
CreateCompilation([source, UnscopedRefAttributeDefinition,
InterpolatedStringHandlerAttribute
], options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
4861
CreateCompilation([source, UnscopedRefAttributeDefinition,
InterpolatedStringHandlerAttribute
]).VerifyDiagnostics(
4917
CreateCompilation([source,
InterpolatedStringHandlerAttribute
]).VerifyDiagnostics();
4958
CreateCompilation([source,
InterpolatedStringHandlerAttribute
]).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
3148
" + (includeOneTimeHelpers ?
InterpolatedStringHandlerAttribute
+ cultureInfoHandler : "");