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)
21999
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput).VerifyDiagnostics();
22035
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
22144
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput).VerifyDiagnostics();
22180
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
22628
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
22658
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
22742
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
22771
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
22843
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
22868
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
22953
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
22982
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
23055
var verifier = CompileAndVerify([exeSource, src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], expectedOutput: expectedOutput)
23094
var comp1 = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
Semantics\ExtensionTests2.cs (41)
14129
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
14241
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
14330
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
14430
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
14505
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
14644
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
14789
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
14893
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
14978
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
15093
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
15270
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
15403
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
15552
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
15652
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
15741
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
15819
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
15894
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16027
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16160
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
16264
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16338
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
16458
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16613
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16727
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16848
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
16994
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17072
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
17140
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17268
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17438
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17512
var comp2 = CreateCompilation([src2,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute]);
17626
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17759
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
17850
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe.WithAllowUnsafe(true));
17934
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18045
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18169
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18279
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18392
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18485
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe);
18591
var comp = CreateCompilation([src,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute], options: TestOptions.DebugExe.WithAllowUnsafe(true));
Semantics\ParamsCollectionTests.cs (1)
3121
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");
9111
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
});
9174
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
});
10038
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10141
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.DebugExe);
10288
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10387
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10485
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10539
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10638
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10737
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10835
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
10934
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11019
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11131
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11383
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11568
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11668
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11735
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
11823
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, options: TestOptions.ReleaseExe);
14113
var comp = CreateCompilation(new[] { code, handler, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14158
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14203
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14246
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14295
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14351
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14447
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14546
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Mscorlib461AndCSharp);
14669
var comp = CreateCompilation([source,
InterpolatedStringHandlerAttribute
], targetFramework: TargetFramework.StandardAndCSharp);
14821
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14824
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
14853
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
14890
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14893
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
14930
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14933
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
14970
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
14982
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
15028
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15031
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
15062
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15065
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
15096
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15099
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, targetFramework: TargetFramework.Net50);
15133
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
15171
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15184
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50);
15226
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15229
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50);
15277
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
15318
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
15354
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular.WithLanguageVersion(languageVersion), targetFramework: TargetFramework.Net50);
15405
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
15448
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular10, targetFramework: TargetFramework.Net50);
15470
comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50);
15510
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
}, targetFramework: TargetFramework.Net50);
17883
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"1");
17924
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"1");
17975
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"12");
18021
var verifier = CompileAndVerify(new[] { code, InterpolatedStringHandlerArgumentAttribute,
InterpolatedStringHandlerAttribute
}, expectedOutput: @"12");
18355
var comp = CreateCompilation(new[] { code,
InterpolatedStringHandlerAttribute
});
Semantics\NullableReferenceTypesTests.cs (4)
68373
",
InterpolatedStringHandlerAttribute
},
68410
",
InterpolatedStringHandlerAttribute
},
68461
",
InterpolatedStringHandlerAttribute
},
69097
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)
3122
" + (includeOneTimeHelpers ?
InterpolatedStringHandlerAttribute
+ cultureInfoHandler : "");