775 references to Script
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (13)
CodeActions\MoveType\CSharpMoveTypeTestsBase.cs (1)
14
protected override ParseOptions GetScriptOptions() => TestOptions.
Script
;
Formatting\FormattingEngineTests.cs (1)
2220
var tree = SyntaxFactory.ParseSyntaxTree(code, options: TestOptions.
Script
);
Formatting\Indentation\SmartIndenterTests.cs (5)
1725
options: TestOptions.
Script
);
1742
options: TestOptions.
Script
);
3454
: new[] { TestOptions.Regular, TestOptions.
Script
};
3510
: new[] { TestOptions.Regular, TestOptions.
Script
};
3539
: new[] { TestOptions.Regular, TestOptions.
Script
};
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (4)
53
using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: TestOptions.
Script
);
81
using var workspace = EditorTestWorkspace.CreateCSharp(code, TestOptions.
Script
);
110
using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: TestOptions.
Script
);
166
using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: TestOptions.
Script
);
KeywordHighlighting\AbstractCSharpKeywordHighlighterTests.cs (1)
23
yield return TestOptions.
Script
;
TextStructureNavigation\TextStructureNavigatorTests.cs (1)
495
TestNavigator(code, func, startPosition, startLength, endPosition, endLength, TestOptions.
Script
);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (71)
CodeGen\CodeGenAsyncTests.cs (7)
4508
var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
4517
var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
4527
var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
4542
var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.
Script
), references);
4543
var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.
Script
), references, previousScriptCompilation: s0);
4553
var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.
Script
), references);
4571
var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
CodeGen\CodeGenDeconstructTests.cs (25)
5046
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5137
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5151
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5197
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5212
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5321
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5357
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5371
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp6), options: TestOptions.DebugExe, references: s_valueTupleRefs);
5391
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5424
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5459
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5494
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5525
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5557
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5582
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5630
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5671
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5716
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5758
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5797
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
5847
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
6877
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
6896
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
6911
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
6946
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe, references: s_valueTupleRefs);
CodeGen\CodeGenDynamicTests.cs (2)
7493
new[] { Parse(sourceScript, options: TestOptions.
Script
) },
7591
new[] { Parse(sourceScript, options: TestOptions.
Script
) },
CodeGen\CodeGenFieldInitTests.cs (1)
654
trees.Add(SyntaxFactory.ParseSyntaxTree("System.Console.WriteLine(" + i + ");", options: TestOptions.
Script
));
CodeGen\CodeGenScriptTests.cs (12)
25
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
44
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
62
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
88
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
113
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
138
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
169
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
197
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
496
var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
555
SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.
Script
),
603
var compilation = CreateCompilationWithMscorlib40(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
636
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
CodeGen\GotoTest.cs (17)
932
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
947
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
983
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
1000
var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.
Script
), references);
1002
var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.
Script
), references, previousScriptCompilation: s0);
1019
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.
Script
);
1039
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.
Script
);
1066
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
1086
var compilation = CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
1111
var s0 = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.
Script
), references);
1113
var s1 = CSharpCompilation.CreateScriptCompilation("s1.dll", SyntaxFactory.ParseSyntaxTree(source1, options: TestOptions.
Script
), references, previousScriptCompilation: s0);
1129
var compilation = CreateCompilationWithMscorlib461(sourceB, options: options, parseOptions: TestOptions.
Script
);
1146
var tree = Parse(source, options: TestOptions.
Script
);
1159
var tree = Parse(source, options: TestOptions.
Script
);
1173
var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
);
1188
compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
);
1201
compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
);
Emit\EntryPointTests.cs (7)
283
Parse(csx, options: TestOptions.
Script
),
374
SyntaxFactory.ParseSyntaxTree(csx, options: TestOptions.
Script
),
395
SyntaxFactory.ParseSyntaxTree(csx, options: TestOptions.
Script
),
726
new[] { SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.
Script
) },
749
SyntaxFactory.ParseSyntaxTree(csx, options: TestOptions.
Script
),
783
SyntaxFactory.ParseSyntaxTree(csx, options: TestOptions.
Script
),
930
SyntaxFactory.ParseSyntaxTree(csx, options: TestOptions.
Script
),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (183)
Attributes\AttributeTests_Dynamic.cs (9)
821
parseOptions: TestOptions.
Script
,
839
CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
).VerifyDiagnostics(
854
parseOptions: TestOptions.
Script
,
871
var comp = CreateCompilationWithMscorlib461(source: source, parseOptions: TestOptions.
Script
).VerifyDiagnostics(
889
parseOptions: TestOptions.
Script
,
911
parseOptions: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.Preview),
930
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
).VerifyDiagnostics(
944
var comp = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
).VerifyDiagnostics(
1333
CreateCompilationWithMscorlib461(source: source, parseOptions: TestOptions.
Script
).VerifyDiagnostics(
Attributes\AttributeTests_WellKnownAttributes.cs (1)
5016
var script = CreateCompilation("", parseOptions: TestOptions.
Script
);
Semantics\OutVarTests.cs (91)
23184
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
23388
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
23433
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
23519
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
23635
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
23855
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
23973
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
24201
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
24272
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
24489
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
24520
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
24635
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
25170
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
25258
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
25499
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
25544
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
25669
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
25785
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
25849
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
26006
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
26146
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
26194
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
26247
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
26389
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
26530
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
26674
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
26814
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
26865
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
26995
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
27135
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
27288
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
27427
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
27485
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
27662
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
27820
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
27875
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
28053
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
28218
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
28277
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
28428
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
28565
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
28613
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
28669
options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
28837
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
28988
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
29128
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
29192
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
29368
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
29530
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
29643
options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
29844
options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
30032
options: TestOptions.DebugExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
30099
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
30271
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
30425
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
30478
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
30519
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
30563
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
30608
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
30666
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
30837
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
30993
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31046
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31087
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31131
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31191
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31364
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31521
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31574
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31615
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31659
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31704
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31748
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31835
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
31928
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
32015
parseOptions: TestOptions.
Script
);
32103
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
32147
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
32187
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
32227
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
, skipUsesIsNullable: true);
32267
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
, skipUsesIsNullable: true);
32307
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
, skipUsesIsNullable: true);
32326
compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
, skipUsesIsNullable: true);
32362
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
, skipUsesIsNullable: true);
32379
compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
, skipUsesIsNullable: true);
32416
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
32456
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
32544
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
32572
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
32600
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
32626
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
Semantics\PatternMatchingTests_Global.cs (82)
53
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
175
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
286
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
345
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
497
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
632
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
674
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
722
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
859
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
995
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
1127
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
1255
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
1301
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
1426
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
1561
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
1709
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
1843
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
1898
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
2069
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
2220
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
2272
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
2444
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
2602
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
2656
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
2802
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
2934
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
2980
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
3033
options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
3192
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
3338
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
3473
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
3532
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
3703
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
3856
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.DebugExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
3916
options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
4114
options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
4295
options: TestOptions.DebugExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
4357
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
4524
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
4669
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
4713
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
4749
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
4788
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
4824
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
4877
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5043
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5190
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5234
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5270
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5309
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5364
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5549
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5719
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5768
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5804
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5843
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5884
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5923
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6008
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6095
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6178
parseOptions: TestOptions.
Script
);
6260
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6289
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6317
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6341
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6370
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6393
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6487
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6679
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6719
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6796
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
6906
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
7120
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
7223
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
7445
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
7504
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
7703
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
7728
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
7837
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
8366
var compilation = CreateCompilationWithMscorlib461(source, new[] { SystemCoreRef }, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
8448
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
8683
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (7)
CodeActions\AbstractCSharpCodeActionTest_NoEditor.cs (1)
14
protected override ParseOptions GetScriptOptions() => TestOptions.
Script
;
ExtractMethod\ExtractLocalFunctionTests.cs (5)
5424
await TestAsync(code, expected, TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp9), index: 1);
5576
await TestAsync(code, expected, TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
5625
await TestAsync(code, expected, TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
5676
await TestAsync(code, expected, TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
5713
await TestAsync(code, expected, TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
IntroduceVariable\InteractiveIntroduceVariableTests.cs (1)
27
=> TestAsync(initial, expected, TestOptions.
Script
, null, index);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (6)
IOperation\IOperationTests.cs (1)
505
var compilation = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
IOperation\IOperationTests_IFieldReferenceExpression.cs (5)
75
parseOptions: TestOptions.
Script
);
101
parseOptions: TestOptions.
Script
);
125
parseOptions: TestOptions.
Script
);
151
parseOptions: TestOptions.
Script
);
176
parseOptions: TestOptions.
Script
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (76)
Semantics\BindingAsyncTests.cs (2)
3144
var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
);
3163
syntaxTree: SyntaxFactory.ParseSyntaxTree(source0, options: TestOptions.
Script
),
Semantics\DeconstructionTests.cs (20)
4332
var comp1 = CreateCompilation(source1, parseOptions: TestOptions.
Script
);
4363
var comp2 = CreateCompilation(source2, parseOptions: TestOptions.
Script
);
4597
var comp1 = CreateCompilation(source1, parseOptions: TestOptions.
Script
);
4619
var comp2 = CreateCompilation(source2, parseOptions: TestOptions.
Script
);
4739
var comp1 = CreateCompilation(source1, parseOptions: TestOptions.
Script
);
4749
var comp2 = CreateCompilation(source2, parseOptions: TestOptions.
Script
);
4886
var comp1 = CreateCompilation(source1, parseOptions: TestOptions.
Script
);
4896
var comp2 = CreateCompilation(source2, parseOptions: TestOptions.
Script
);
4968
var comp1 = CreateCompilation(source1, parseOptions: TestOptions.
Script
);
4978
var comp2 = CreateCompilation(source2, parseOptions: TestOptions.
Script
);
5075
var comp1 = CreateCompilation(source1, parseOptions: TestOptions.
Script
);
5085
var comp2 = CreateCompilation(source2, parseOptions: TestOptions.
Script
);
5290
var comp1 = CreateCompilation(source1, parseOptions: TestOptions.
Script
);
5321
var comp2 = CreateCompilation(source2, parseOptions: TestOptions.
Script
);
5577
var comp1 = CreateCompilation(source1, parseOptions: TestOptions.
Script
);
5599
var comp2 = CreateCompilation(source2, parseOptions: TestOptions.
Script
);
5727
var comp1 = CreateCompilation(source1, parseOptions: TestOptions.
Script
);
5755
var comp2 = CreateCompilation(source2, parseOptions: TestOptions.
Script
);
5943
var comp1 = CreateCompilation(source1, parseOptions: TestOptions.
Script
);
5962
var comp2 = CreateCompilation(source2, parseOptions: TestOptions.
Script
);
Semantics\ImplicitlyTypedLocalsTests.cs (1)
55
CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.
Script
).VerifyDiagnostics(
Semantics\InteractiveSemanticModelTests.cs (2)
35
parseOptions: TestOptions.
Script
,
357
var compilation = CreateCompilation(testSrc, parseOptions: TestOptions.
Script
);
Semantics\IteratorTests.cs (2)
442
var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.
Script
);
474
var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.
Script
);
Semantics\LookupTests.cs (1)
36
var tree = Parse(testSrc, options: isScript ? TestOptions.
Script
: TestOptions.Regular);
Semantics\NullableReferenceTypesTests.cs (2)
81300
parseOptions: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp8));
81371
var comp = CreateCompilationWithMscorlib40AndSystemCore(new[] { source }, parseOptions: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp8));
Semantics\QueryTests.cs (2)
2713
var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.
Script
);
2739
var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.
Script
);
Semantics\RefFieldTests.cs (3)
12109
var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
12479
var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
12889
var comp = CreateCompilation(source, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
Semantics\RefLocalsAndReturnsTests.cs (2)
5239
var comp = CreateCompilation(code, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
5278
var comp = CreateCompilation(code, options: TestOptions.ReleaseExe.WithScriptClassName("Script"), parseOptions: TestOptions.
Script
);
Semantics\ScriptSemanticsTests.cs (22)
99
parseOptions: TestOptions.
Script
,
116
parseOptions: TestOptions.
Script
,
141
parseOptions: TestOptions.
Script
.WithNoRefSafetyRulesAttribute(),
161
parseOptions: TestOptions.
Script
,
190
parseOptions: TestOptions.
Script
,
209
parseOptions: TestOptions.
Script
,
235
var compilation = CreateCompilationWithMscorlib461(test, parseOptions: TestOptions.
Script
);
263
var tree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.
Script
);
286
var tree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.
Script
);
298
var submission = CSharpCompilation.CreateScriptCompilation("test", syntaxTree: SyntaxFactory.ParseSyntaxTree("1", options: TestOptions.
Script
), returnType: typeof(int));
365
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
396
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
443
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
485
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp6));
519
var tree = Parse(source, options: TestOptions.
Script
);
535
var tree = Parse(source, options: TestOptions.
Script
);
627
var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options: TestOptions.
Script
) });
640
var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options: TestOptions.
Script
) });
652
var compilation = CreateCompilationWithMscorlib461(new[] { Parse(source, options: TestOptions.
Script
) });
1134
var tree = Parse(source, options: TestOptions.
Script
);
1154
var tree = Parse(source, options: TestOptions.
Script
);
1373
parseOptions: TestOptions.
Script
,
Semantics\SemanticErrorTests.cs (10)
1385
new[] { SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.
Script
) });
11702
", parseOptions: TestOptions.
Script
).VerifyDiagnostics(
11880
", parseOptions: TestOptions.
Script
).VerifyDiagnostics(
12149
", parseOptions: TestOptions.
Script
).VerifyDiagnostics(
12189
", parseOptions: TestOptions.
Script
).VerifyDiagnostics(
12224
", parseOptions: TestOptions.
Script
).VerifyDiagnostics(
12256
", parseOptions: TestOptions.
Script
).VerifyDiagnostics(
12321
", parseOptions: TestOptions.
Script
).VerifyDiagnostics(
12332
", parseOptions: TestOptions.
Script
).VerifyDiagnostics(
12345
", parseOptions: TestOptions.
Script
).VerifyDiagnostics(
Semantics\StructConstructorTests.cs (1)
3870
var comp = CreateCompilation(source, parseOptions: TestOptions.
Script
, targetFramework: TargetFramework.NetCoreApp);
Semantics\SwitchTests.cs (2)
2395
CreateCompilationWithMscorlib461(source, references: new[] { SystemCoreRef }, parseOptions: TestOptions.
Script
).VerifyDiagnostics(
2419
syntaxTree: SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.
Script
),
Semantics\SyntaxTreeRootTests.cs (1)
73
options: TestOptions.
Script
);
Semantics\UnsafeTests.cs (3)
11250
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Script
).VerifyDiagnostics(
11264
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Script
).VerifyDiagnostics(
11277
CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Script
).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (85)
Compilation\CompilationAPITests.cs (23)
562
", filename: "1.csx", options: TestOptions.
Script
);
570
", options: TestOptions.
Script
);
577
", filename: "1.csx", options: TestOptions.
Script
);
584
", filename: "4.csx", options: TestOptions.
Script
);
1742
syntaxTree: Parse("true", options: TestOptions.
Script
)
1750
syntaxTree: Parse("false", options: TestOptions.
Script
))
1768
var compilation = CreateCompilationWithMscorlib461(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Script
);
1789
var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
);
1812
syntaxTree: Parse(source, options: TestOptions.
Script
));
1836
syntaxTree: Parse(source, options: TestOptions.
Script
));
2069
class C { }", options: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp10));
2077
class C { }", options: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp10));
2081
class C { }", options: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp10));
2431
Assert.True(CreateSubmission("1", parseOptions: TestOptions.
Script
).HasSubmissionResult());
2432
Assert.False(CreateSubmission("1;", parseOptions: TestOptions.
Script
).HasSubmissionResult());
2433
Assert.False(CreateSubmission("void goo() { }", parseOptions: TestOptions.
Script
).HasSubmissionResult());
2434
Assert.False(CreateSubmission("using System;", parseOptions: TestOptions.
Script
).HasSubmissionResult());
2435
Assert.False(CreateSubmission("int i;", parseOptions: TestOptions.
Script
).HasSubmissionResult());
2436
Assert.False(CreateSubmission("System.Console.WriteLine();", parseOptions: TestOptions.
Script
).HasSubmissionResult());
2437
Assert.False(CreateSubmission("System.Console.WriteLine()", parseOptions: TestOptions.
Script
).HasSubmissionResult());
2438
Assert.True(CreateSubmission("null", parseOptions: TestOptions.
Script
).HasSubmissionResult());
2439
Assert.True(CreateSubmission("System.Console.WriteLine", parseOptions: TestOptions.
Script
).HasSubmissionResult());
3393
42", parseOptions: TestOptions.
Script
);
Compilation\GetSemanticInfoTests.cs (1)
1129
var tree = Parse(text, options: TestOptions.
Script
);
Compilation\GetUnusedImportDirectivesTests.cs (2)
389
var tree = Parse("using System;", options: TestOptions.
Script
);
398
var tree = Parse("using System;", options: TestOptions.
Script
);
Compilation\LoadDirectiveTests.cs (13)
22
var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.
Script
);
35
var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.
Script
);
54
var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.
Script
);
79
var compilation = CreateCompilationWithMscorlib461(code, sourceFileName: "external1.csx", options: options, parseOptions: TestOptions.
Script
);
81
var external2 = Parse(code, "external2.csx", TestOptions.
Script
);
92
#load ""a.csx""", filename: "external3.csx", options: TestOptions.
Script
);
104
var external4 = Parse("#load \"a.csx\"", "external4.csx", TestOptions.
Script
);
129
var compilation = CreateCompilationWithMscorlib461(code, parseOptions: TestOptions.
Script
);
145
var compilation = CreateCompilationWithMscorlib461(code, parseOptions: TestOptions.
Script
);
157
var compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.
Script
);
162
var newTree = Parse(code, "a.csx", TestOptions.
Script
);
177
compilation = CreateCompilationWithMscorlib461(code, options: options, parseOptions: TestOptions.
Script
);
182
newTree = Parse(code, "a.csx", TestOptions.
Script
);
Compilation\ReferenceManagerTests.cs (8)
864
t1 = Parse($"#r \"{p2}\"", options: TestOptions.
Script
),
865
t2 = Parse($"#r \"{p3}\"", options: TestOptions.
Script
),
866
t3 = Parse("#r \"Lib\"", options: TestOptions.
Script
),
1277
Parse("#r \"1\"", options: TestOptions.
Script
),
1278
Parse("#r \"2.dll\"", options: TestOptions.
Script
),
1323
Parse("#r \"throw\"", options: TestOptions.
Script
),
1351
", filename: @"C:\A\a.csx", options: TestOptions.
Script
);
1357
", filename: @"C:\B\b.csx", options: TestOptions.
Script
);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (4)
3681
var parseOptions = TestOptions.
Script
;
3784
", parseOptions: TestOptions.
Script
3803
var compilation = CreateCompilation(code, parseOptions: TestOptions.
Script
);
3844
var compilation = CreateCompilationWithMscorlib40AndSystemCore(sourceCode, parseOptions: TestOptions.
Script
);
Compilation\UsedAssembliesTests.cs (9)
2339
AssertUsedAssemblyReferences(CreateCompilation(Parse(source, options: TestOptions.
Script
), references: new[] { reference }, options: TestOptions.DebugDll.WithUsings(@using)),
4012
parseOptions: TestOptions.
Script
.WithDocumentationMode(DocumentationMode.None),
4016
parseOptions: TestOptions.
Script
.WithDocumentationMode(DocumentationMode.Parse),
4607
parseOptions: TestOptions.
Script
.WithDocumentationMode(DocumentationMode.None),
4611
parseOptions: TestOptions.
Script
.WithDocumentationMode(DocumentationMode.Parse),
4615
parseOptions: TestOptions.
Script
.WithDocumentationMode(DocumentationMode.None),
4619
parseOptions: TestOptions.
Script
.WithDocumentationMode(DocumentationMode.Parse),
4798
parseOptions: TestOptions.
Script
.WithDocumentationMode(DocumentationMode.None),
4802
parseOptions: TestOptions.
Script
.WithDocumentationMode(DocumentationMode.Parse),
SymbolDisplay\SymbolDisplayTests.cs (1)
2851
var tree = SyntaxFactory.ParseSyntaxTree(text, TestOptions.
Script
);
Symbols\CompilationCreationTests.cs (8)
2688
", options: TestOptions.
Script
),
2692
", options: TestOptions.
Script
),
2698
", options: TestOptions.
Script
)
2731
", options: TestOptions.
Script
),
2783
new[] { Parse(source, options: TestOptions.
Script
) },
2793
new[] { SyntaxFactory.ParseSyntaxTree(@"#r ""bar""", TestOptions.
Script
, "a.csx", Encoding.UTF8) },
2810
", options: TestOptions.
Script
),
2838
", options: TestOptions.
Script
)
Symbols\ExtensionMethodTests.cs (3)
2423
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp6));
3800
var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
);
3807
var parseOptions = TestOptions.
Script
;
Symbols\ImplicitClassTests.cs (2)
58
", parseOptions: TestOptions.
Script
);
84
", parseOptions: TestOptions.
Script
);
Symbols\RequiredMembersTests.cs (2)
6280
""", new[] { reference }, parseOptions: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.Preview));
6299
""", new[] { reference }, parseOptions: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.Preview));
Symbols\Source\ExternAliasTests.cs (2)
100
var comp = CreateCompilationWithMscorlib461(src, options: TestOptions.DebugExe, parseOptions: TestOptions.
Script
);
112
syntaxTree: SyntaxFactory.ParseSyntaxTree(src, options: TestOptions.
Script
),
Symbols\Source\FileModifierTests.cs (1)
4089
var comp = CreateSubmission(source1, parseOptions: TestOptions.
Script
.WithLanguageVersion(LanguageVersion.Preview));
Symbols\Source\ModifierTests.cs (1)
111
var comp = CreateCompilationWithMscorlib461(text, parseOptions: TestOptions.
Script
);
Symbols\SymbolErrorTests.cs (3)
16853
CreateCompilationWithMscorlib461(new[] { Parse(text, options: TestOptions.
Script
) }).VerifyDiagnostics(expectedDiagnostics);
20458
var compilation = CreateCompilationWithMscorlib461(source, parseOptions: TestOptions.
Script
, options: TestOptions.DebugExe);
20480
var submission = CSharpCompilation.CreateScriptCompilation("s0.dll", SyntaxFactory.ParseSyntaxTree(source, options: TestOptions.
Script
), new[] { MscorlibRef_v4_0_30316_17626, SystemCoreRef });
Symbols\TypeTests.cs (2)
816
new[] { Parse(mainSrc, options: TestOptions.
Script
) },
829
new[] { Parse(mainSrc, options: TestOptions.
Script
) },
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (332)
IncrementalParsing\BinaryExpression.cs (4)
176
MakeChange(oldStyle, newStyle, options: TestOptions.
Script
);
177
MakeChange(oldStyle, newStyle, topLevel: true, options: TestOptions.
Script
);
183
MakeChange(oldStyle, newStyle, options: TestOptions.
Script
);
184
MakeChange(oldStyle, newStyle, topLevel: true, options: TestOptions.
Script
);
IncrementalParsing\ChangingAsync.cs (1)
62
ParseAndValidate(text, validator, TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp5));
IncrementalParsing\ChangingIdentifiers.cs (2)
244
MakeIncrementalNameChanges(oldStyle, newStyle, expressionValidator, options: TestOptions.
Script
);
245
MakeIncrementalNameChanges(oldStyle, newStyle, expressionValidator, topLevel: true, options: TestOptions.
Script
);
IncrementalParsing\CompoundAssignment.cs (2)
89
MakeAssignmentChanges(oldStyle, newStyle, options: TestOptions.
Script
);
90
MakeAssignmentChanges(oldStyle, newStyle, topLevel: true, options: TestOptions.
Script
);
IncrementalParsing\IncrementalParsingTests.cs (8)
436
var oldTree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.
Script
);
460
var oldTree = SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.
Script
);
2782
var startTree = SyntaxFactory.ParseSyntaxTree(oldText, options: TestOptions.
Script
);
2795
var parsedTree = SyntaxFactory.ParseSyntaxTree(newText, options: TestOptions.
Script
);
2811
var startTree = SyntaxFactory.ParseSyntaxTree(oldText, options: TestOptions.
Script
);
2826
var parsedTree = SyntaxFactory.ParseSyntaxTree(newText, options: TestOptions.
Script
);
2841
var startTree = SyntaxFactory.ParseSyntaxTree(oldText, options: TestOptions.
Script
);
2853
var parsedTree = SyntaxFactory.ParseSyntaxTree(newText, options: TestOptions.
Script
);
IncrementalParsing\TypeChanges.cs (1)
150
ParseAndValidate(text, validator, TestOptions.
Script
);
IncrementalParsing\UnaryExpression.cs (2)
65
MakeUnaryChanges(oldStyle, newStyle, options: TestOptions.
Script
);
66
MakeUnaryChanges(oldStyle, newStyle, topLevel: true, options: TestOptions.
Script
);
LexicalAndXml\DisabledRegionTests.cs (1)
119
ParserErrorMessageTests.ParseAndValidate(source, TestOptions.
Script
,
LexicalAndXml\LexicalErrorTests.cs (1)
498
ParserErrorMessageTests.ParseAndValidate(test, TestOptions.
Script
, Diagnostic(ErrorCode.ERR_PPReferenceFollowsToken, "r"));
Parsing\DeclarationScopeParsingTests.cs (3)
3338
UsingTree(source, TestOptions.
Script
);
3373
UsingTree(source, TestOptions.
Script
,
3429
UsingTree(source, TestOptions.
Script
,
Parsing\DeconstructionTests.cs (2)
1580
var tree = UsingTree(@" (int x, int y) = (1, 2); ", options: TestOptions.
Script
);
1656
var tree = UsingTree(@" foreach ((int x, int y) in new[] { (1, 2) }) { }; ", options: TestOptions.
Script
);
Parsing\MemberDeclarationParsingTests.cs (183)
29
public static readonly IEnumerable<object[]> Regular10AndScriptAndRequiredMembersMinimum = new[] { new[] { TestOptions.Regular10 }, new[] { RequiredMembersOptions }, new[] { TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp10) } };
30
public static readonly IEnumerable<object[]> Regular10AndScript = new[] { new[] { TestOptions.Regular10 }, new[] { TestOptions.
Script
.WithLanguageVersion(LanguageVersion.CSharp10) } };
117
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
142
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
153
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
171
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
200
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
248
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
299
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
326
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
369
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
776
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
824
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
872
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
915
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
958
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
1005
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
1052
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
1086
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
1134
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
1168
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
2347
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
2489
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
2613
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
2719
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
2825
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
2879
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
2959
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3014
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3065
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3125
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3228
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3373
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3501
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3611
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3721
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3779
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3863
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3922
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
3977
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4041
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4116
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4178
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4267
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4401
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4518
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4617
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4716
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4769
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4848
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4902
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
4952
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5011
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5107
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5245
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5366
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5469
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5572
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5629
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5712
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5770
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5824
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5887
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
5961
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6022
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6084
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6159
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6229
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6292
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6392
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6459
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6543
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6643
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6696
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6758
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6812
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6862
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
6921
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7017
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7130
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7234
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7338
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7442
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7499
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7565
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7623
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7677
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7740
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7814
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7875
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7937
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
7994
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8048
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8102
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8161
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8207
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8272
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8321
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8382
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8441
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8487
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8545
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8890
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
8944
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
9006
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
9068
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
9114
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
12414
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
12677
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
12769
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
12844
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
12927
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13010
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13097
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13181
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13260
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13339
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13426
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13513
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13604
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13715
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13789
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13863
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
13945
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14027
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14106
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14192
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14275
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14369
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14460
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14546
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14629
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14704
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14779
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14862
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
14945
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15076
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15210
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15268
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15326
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15384
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15442
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15521
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15600
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15683
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15770
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15861
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
15942
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
16036
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
16150
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
16303
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
16473
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
16582
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
16711
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
16892
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17090
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17160
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17224
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17281
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17354
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17421
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17483
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17553
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17637
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17700
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17770
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17854
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17906
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
17980
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
18069
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
18170
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
18274
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
18375
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
18473
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
18522
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
18583
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
18708
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
18787
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
18883
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
18978
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
19059
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
19141
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
19213
foreach (var options in new[] { TestOptions.
Script
, TestOptions.Regular })
Parsing\ScriptParsingTests.cs (109)
25
return SyntaxFactory.ParseSyntaxTree(text, options: options ?? TestOptions.
Script
);
77
ParseAndValidate(test, TestOptions.
Script
,
2598
ParseAndValidate(test, TestOptions.
Script
);
2602
ParseAndValidate(test, TestOptions.
Script
);
2606
ParseAndValidate(test, TestOptions.
Script
);
2612
var tree = UsingTree(@"a * b;", TestOptions.
Script
);
2642
var tree = UsingTree(@"a * b", TestOptions.
Script
);
2675
var tree = UsingTree(@"a<t>.n * f(x)", TestOptions.
Script
);
2811
var tree = UsingTree(@"T ? a;", TestOptions.
Script
);
2841
var tree = UsingTree(@"T ? b, c = 1;", TestOptions.
Script
);
2884
var tree = UsingTree(@"T ? b = d => { };", TestOptions.
Script
);
2931
var tree = UsingTree(@"T ? b = x ? y : z;", TestOptions.
Script
);
2981
var tree = UsingTree(@"T ? a,", TestOptions.
Script
,
3023
var tree = UsingTree(@"T ? a = 1,", TestOptions.
Script
,
3074
var tree = UsingTree(@"T ? a {", TestOptions.
Script
,
3105
var tree = UsingTree(@"T ? a.b {", TestOptions.
Script
,
3144
var tree = UsingTree(@"T ? a<T>.b {", TestOptions.
Script
,
3192
var tree = UsingTree(@"T ? a<T?>.b<S>.c {", TestOptions.
Script
,
3263
var tree = UsingTree(@"T ? a() {", TestOptions.
Script
,
3299
var tree = UsingTree(@"T ? a() where", TestOptions.
Script
,
3356
var tree = UsingTree(@"T ? a(T b", TestOptions.
Script
,
3399
var tree = UsingTree(@"T ? a.b(T c", TestOptions.
Script
,
3450
var tree = UsingTree(@"T ? a<A>.b<B>(C c", TestOptions.
Script
,
3519
var tree = UsingTree(@"T ? a([Attr]C c", TestOptions.
Script
,
3574
var tree = UsingTree(@"T ? a([Attr(a = b)]c", TestOptions.
Script
,
3652
var tree = UsingTree(@"T ? a(out C c", TestOptions.
Script
,
3696
var tree = UsingTree(@"T ? a(C[] a", TestOptions.
Script
,
3751
var tree = UsingTree(@"T ? a(params", TestOptions.
Script
,
3801
var tree = UsingTree(@"T ? a(out T ? b", TestOptions.
Script
,
3849
var tree = UsingTree(@"T ? a(ref T ? b", TestOptions.
Script
,
3897
var tree = UsingTree(@"T ? a(params T ? b", TestOptions.
Script
,
3945
var tree = UsingTree(@"T ? a([Attr]T ? b", TestOptions.
Script
,
4004
var tree = UsingTree(@"T ? a(T ? b,", TestOptions.
Script
,
4066
var tree = UsingTree(@"T ? a(T ? b)", TestOptions.
Script
,
4110
var tree = UsingTree(@"T ? a(T c)", TestOptions.
Script
,
4150
var tree = UsingTree(@"T ? a(this c d", TestOptions.
Script
,
4194
var tree = UsingTree(@"T ? a(ref out T a", TestOptions.
Script
,
4239
var tree = UsingTree(@"T ? a(int a", TestOptions.
Script
,
4282
var tree = UsingTree(@"T ? a(ref int a", TestOptions.
Script
,
4326
var tree = UsingTree(@"T ? a(T a =", TestOptions.
Script
,
4380
var tree = UsingTree(@"T ? a(T[,] a", TestOptions.
Script
,
4499
var tree = UsingTree(@"T ? m(a < b, c > d)", TestOptions.
Script
,
4555
var tree = UsingTree(@"T ? 1", TestOptions.
Script
,
4596
var tree = UsingTree(@"T ? a", TestOptions.
Script
,
4637
var tree = UsingTree(@"T ? a.", TestOptions.
Script
,
4689
var tree = UsingTree(@"T ? a[", TestOptions.
Script
,
4741
var tree = UsingTree(@"T ? a<", TestOptions.
Script
,
4793
var tree = UsingTree(@"T ? a<b", TestOptions.
Script
,
4842
var tree = UsingTree(@"T ? a<b>", TestOptions.
Script
,
4892
var tree = UsingTree(@"T ? a<b,c>", TestOptions.
Script
,
4947
var tree = UsingTree(@"T ? a<b>.", TestOptions.
Script
,
5008
var tree = UsingTree(@"T ? a<b>.c", TestOptions.
Script
,
5066
var tree = UsingTree(@"T ? a<b>.c(", TestOptions.
Script
,
5135
var tree = UsingTree(@"T ? a(", TestOptions.
Script
,
5187
var tree = UsingTree(@"T ? a.b(", TestOptions.
Script
,
5247
var tree = UsingTree(@"T ? m(c", TestOptions.
Script
,
5306
var tree = UsingTree(@"T ? m(c,", TestOptions.
Script
,
5376
var tree = UsingTree(@"T ? m(c:", TestOptions.
Script
,
5446
var tree = UsingTree(@"T ? m(c?", TestOptions.
Script
,
5527
var tree = UsingTree(@"T ? m(c? a", TestOptions.
Script
,
5605
var tree = UsingTree(@"T ? m(c? a =", TestOptions.
Script
,
5694
var tree = UsingTree(@"T ? m(c? a = b ?", TestOptions.
Script
,
5802
var tree = UsingTree(@"T ? m()", TestOptions.
Script
,
5851
var tree = UsingTree(@"T ? m(a)", TestOptions.
Script
,
5907
var tree = UsingTree(@"T ? m();", TestOptions.
Script
,
5956
var tree = UsingTree(@"T ? m(a);", TestOptions.
Script
,
6012
var tree = UsingTree(@"T ? m(x: 1", TestOptions.
Script
,
6079
var tree = UsingTree(@"T ? m(x: 1, y: a ? b : c)", TestOptions.
Script
,
6172
var tree = UsingTree(@"T ? u => { } : v => { }", TestOptions.
Script
);
6225
var tree = UsingTree(@"T ? u => (d ? e => 1 : f => 2)(3) : c => 2", TestOptions.
Script
);
6325
var tree = UsingTree(@"T ? a ?", TestOptions.
Script
,
6388
var tree = UsingTree(@"T ? a =", TestOptions.
Script
,
6440
var tree = UsingTree(@"T ? a = b", TestOptions.
Script
,
6489
var tree = UsingTree(@"T ? a = b : ", TestOptions.
Script
,
6535
var tree = UsingTree(@"T ? m(out c", TestOptions.
Script
,
6595
var tree = UsingTree(@"T ? m(ref c", TestOptions.
Script
,
6655
var tree = UsingTree(@"T ? m(ref out", TestOptions.
Script
,
6733
var tree = UsingTree(@"T ? m(ref out c", TestOptions.
Script
,
6808
var tree = UsingTree(@"T ? m(this", TestOptions.
Script
,
6867
var tree = UsingTree(@"T ? m(this.", TestOptions.
Script
,
6937
var tree = UsingTree(@"T ? m(this<", TestOptions.
Script
,
7007
var tree = UsingTree(@"T ? m(this[", TestOptions.
Script
,
7077
var tree = UsingTree(@"T ? m(this a", TestOptions.
Script
,
7147
var tree = UsingTree(@"T ? m(this(", TestOptions.
Script
,
7217
var tree = UsingTree(@"T ? m(T[", TestOptions.
Script
,
7287
var tree = UsingTree(@"T ? m(T[1", TestOptions.
Script
,
7364
var tree = UsingTree(@"T ? m(T[1]", TestOptions.
Script
,
7438
var tree = UsingTree(@"T ? a(T ? a =", TestOptions.
Script
,
7527
var tree = UsingTree(@"T ? a(T)", TestOptions.
Script
,
7583
var tree = UsingTree(@"T ? a(ref int.MaxValue)", TestOptions.
Script
,
7648
var tree = UsingTree(@"T ? a(ref a,", TestOptions.
Script
,
7719
var tree = UsingTree(@"T ? a(,", TestOptions.
Script
,
7792
var tree = UsingTree(@"T ? a(T ? b[1] : b[2])", TestOptions.
Script
,
7965
var tree = UsingTree(@"T ? m(a < b, c > d) :", TestOptions.
Script
,
8360
var tree = UsingTree(@"from", TestOptions.
Script
);
8382
var tree = UsingTree(@"from c", TestOptions.
Script
,
9177
var tree = UsingTree("a < b,c.", TestOptions.
Script
,
9609
var tree = SyntaxFactory.ParseSyntaxTree(test, options: TestOptions.
Script
);
9633
var tree = ParseAndValidate($"#!{command}", TestOptions.
Script
);
9644
tree = ParseAndValidate($"#! {command}\r\n ", TestOptions.
Script
);
9660
Console.WriteLine(""Hi!"");", TestOptions.
Script
);
9674
ParseAndValidate(" #!/usr/bin/env csi", TestOptions.
Script
,
9677
ParseAndValidate("\n#!/usr/bin/env csi", TestOptions.
Script
,
9680
ParseAndValidate("\r\n#!/usr/bin/env csi", TestOptions.
Script
,
9683
ParseAndValidate("#!/bin/sh\r\n#!/usr/bin/env csi", TestOptions.
Script
,
9686
ParseAndValidate("a #!/usr/bin/env csi", TestOptions.
Script
,
9693
ParseAndValidate("#/usr/bin/env csi", TestOptions.
Script
,
9700
ParseAndValidate("# !/usr/bin/env csi", TestOptions.
Script
,
9707
var tree = ParseAndValidate("//#!/usr/bin/env csi", TestOptions.
Script
);
Syntax\SyntaxNodeTests.cs (2)
387
testContainsHelper2(new[] { SyntaxKind.ShebangDirectiveTrivia }, SyntaxFactory.ParseCompilationUnit("#!command", options: TestOptions.
Script
));
388
testContainsHelper2(new[] { SyntaxKind.BadDirectiveTrivia }, SyntaxFactory.ParseCompilationUnit(" #!command", options: TestOptions.
Script
));
Syntax\SyntaxRewriterTests.cs (9)
361
var tree = SyntaxFactory.ParseSyntaxTree("System.Console.Write(\"Before\")", TestOptions.
Script
);
376
var tree = SyntaxFactory.ParseSyntaxTree("m(a, b)", TestOptions.
Script
);
395
var tree = SyntaxFactory.ParseSyntaxTree("m(a, b)", TestOptions.
Script
);
422
var tree = SyntaxFactory.ParseSyntaxTree("private class C { }", options: TestOptions.
Script
);
442
var tree = SyntaxFactory.ParseSyntaxTree("public class C { }", options: TestOptions.
Script
);
465
var tree = SyntaxFactory.ParseSyntaxTree("/* c */ identifier", options: TestOptions.
Script
);
492
var tree = SyntaxFactory.ParseSyntaxTree("/* c */ identifier", options: TestOptions.
Script
);
514
var tree = SyntaxFactory.ParseSyntaxTree("private class C { }", options: TestOptions.
Script
);
527
var tree = SyntaxFactory.ParseSyntaxTree("private class C { }", options: TestOptions.
Script
);
Syntax\SyntaxTests.cs (2)
22
Assert.False(SyntaxFactory.IsCompleteSubmission(SyntaxFactory.ParseSyntaxTree(code, options: TestOptions.
Script
)));
27
Assert.True(SyntaxFactory.IsCompleteSubmission(SyntaxFactory.ParseSyntaxTree(code, options: TestOptions.
Script
)));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (2)
1466
syntaxTree: Parse(source, options: parseOptions ?? TestOptions.
Script
),
1489
syntaxTree: Parse(code, options: parseOptions ?? TestOptions.
Script
),