99 references to Create
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (8)
InteractiveSessionReferencesTests.cs (8)
167
var script = CSharpScript.
Create
(@"
253
var script = CSharpScript.
Create
($@"
283
var script0 = CSharpScript.
Create
($@"
362
var result = CSharpScript.
Create
($@"
401
var result = CSharpScript.
Create
($@"
421
var script0 = CSharpScript.
Create
($@"
482
var script = CSharpScript.
Create
("new S1()", options);
537
var s0 = await CSharpScript.
Create
("new C()", options: ScriptOptions.Default.AddReferences(portableLibRef), assemblyLoader: loader).RunAsync();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (86)
InteractiveSessionReferencesTests.cs (3)
40
var s0 = CSharpScript.
Create
($@"
98
var s0 = CSharpScript.
Create
($@"
137
var s0 = CSharpScript.
Create
($@"
InteractiveSessionTests.cs (38)
44
var script = CSharpScript.
Create
(@"
65
var script = CSharpScript.
Create
(@"
86
var script = CSharpScript.
Create
(@"
103
var script = CSharpScript.
Create
(@"
133
var script = CSharpScript.
Create
(@"
153
var script = CSharpScript.
Create
(@"
172
var script = CSharpScript.
Create
(@"
187
var script = CSharpScript.
Create
(@"
217
var script = CSharpScript.
Create
(@"
233
var script = CSharpScript.
Create
(@"
327
var script = CSharpScript.
Create
(@"
363
var script = CSharpScript.
Create
(@"
388
var script = CSharpScript.
Create
(
403
var script = CSharpScript.
Create
("var x = 1;").ContinueWith("x");
411
CSharpScript.
Create
("using InteractiveFixtures.C;", ScriptOptions.Default.AddReferences(HostAssembly)).
446
var script = CSharpScript.
Create
(@"
531
CSharpScript.
Create
("using System;").
539
CSharpScript.
Create
("int Environment = 1;").
551
CSharpScript.
Create
("int System = 1;").
602
var s0 = CSharpScript.
Create
("int x = 1;");
715
var script = CSharpScript.
Create
(@"
741
var s0 = CSharpScript.
Create
(@"
1137
CSharpScript.
Create
("int i = 0;", options).
1174
var script = CSharpScript.
Create
(@"
1241
var script = CSharpScript.
Create
(
1261
var script = CSharpScript.
Create
(
1294
var r2 = CSharpScript.
Create
($@"#r ""{fileMain.Path}""").ContinueWith($@"M.X.F").RunAsync().Result.ReturnValue;
1325
var r2 = CSharpScript.
Create
($@"#r ""{fileMain.Path}""").ContinueWith($@"M.X.F").RunAsync().Result.ReturnValue;
1340
var script = CSharpScript.
Create
(@"new C()",
1640
var scriptCompilation = CSharpScript.
Create
(
1697
var scriptCompilation = CSharpScript.
Create
(
1765
var scriptCompilation = CSharpScript.
Create
(
1919
var s0 = CSharpScript.
Create
(@"
1942
var s0 = CSharpScript.
Create
(@"
1969
var s0 = CSharpScript.
Create
(@"
2030
var s0 = CSharpScript.
Create
(@"
2064
var s0 = CSharpScript.
Create
(@"
2098
var s0 = CSharpScript.
Create
(@"
ScriptTests.cs (45)
36
var script = CSharpScript.
Create
("1 + 2");
43
Assert.Throws<ArgumentNullException>(() => CSharpScript.
Create
((string)null));
83
var script = CSharpScript.
Create
("1 + 2", options: ScriptOptions.Default.WithEmitDebugInformation(true));
107
var script = CSharpScript.
Create
("1 + 2");
136
var script = CSharpScript.
Create
("1 + 2");
169
CSharpScript.
Create
("System.Console.WriteLine(0);"),
294
var script = CSharpScript.
Create
("X + Y", globalsType: typeof(Globals));
303
var script = CSharpScript.
Create
("X + Y");
312
var script = CSharpScript.
Create
("X + Y", globalsType: typeof(Globals));
321
var script = CSharpScript.
Create
("X + Y", globalsType: typeof(Globals));
389
CSharpScript.
Create
(
415
var script = CSharpScript.
Create
("var x = 1;");
506
CSharpScript.
Create
("System.Console.WriteLine();"), ""));
520
var script = CSharpScript.
Create
(@"
533
var script = CSharpScript.
Create
(@"
543
script = CSharpScript.
Create
(@"
581
var script = CSharpScript.
Create
(@"
591
script = CSharpScript.
Create
(@"
649
var script = CSharpScript.
Create
("#load \"a.csx\"", options);
653
script = CSharpScript.
Create
(@"
672
var script = CSharpScript.
Create
("#load \"a.csx\"", options);
676
script = CSharpScript.
Create
(@"
695
var script = CSharpScript.
Create
("#load \"a.csx\"", options);
699
script = CSharpScript.
Create
(@"
715
var script = CSharpScript.
Create
("#load \"b.csx\"", options);
723
script = CSharpScript.
Create
(@"
733
script = CSharpScript.
Create
(@"
750
var script = CSharpScript.
Create
("#load \"b.csx\"", options);
758
script = CSharpScript.
Create
(@"
768
script = CSharpScript.
Create
(@"
788
var script = CSharpScript.
Create
(@"
796
script = CSharpScript.
Create
(@"
810
var script = CSharpScript.
Create
("return;");
814
script = CSharpScript.
Create
(@"
862
return VerifyStackTraceAsync(() => CSharpScript.
Create
("throw new System.Exception();", opts), line: 1, column: 1, filename: "debug.csx");
869
return VerifyStackTraceAsync(() => CSharpScript.
Create
("throw new System.Exception();", opts));
876
return VerifyStackTraceAsync(() => CSharpScript.
Create
("throw new System.Exception();", opts));
899
return VerifyStackTraceAsync(() => CSharpScript.
Create
("throw new System.Exception();", opts), line: 1, column: 1, filename: "");
907
return VerifyStackTraceAsync(() => CSharpScript.
Create
("throw new System.Exception();", opts), line: 1, column: 1, filename: "");
914
return VerifyStackTraceAsync(() => CSharpScript.
Create
("throw new System.Exception();", opts));
921
return VerifyStackTraceAsync(() => CSharpScript.
Create
("throw new System.Exception();", opts));
944
var script = CSharpScript.
Create
(@"#load ""a.csx""", options);
951
var script = CSharpScript.
Create
(@"string x = default;", ScriptOptions.Default.WithLanguageVersion(LanguageVersion.CSharp7));
964
var script = CSharpScript.
Create
(@"#nullable enable
987
var script = CSharpScript.
Create
(code, ScriptOptions.Default.WithLanguageVersion(LanguageVersion.CSharp8));
Microsoft.CodeAnalysis.Scripting.UnitTests (5)
ScriptOptionsTests.cs (5)
163
var compilation = CSharpScript.
Create
(string.Empty, scriptOptions).GetCompilation();
219
var compilation = (CSharpCompilation)CSharpScript.
Create
(string.Empty, scriptOptions).GetCompilation();
246
var compilation = CSharpScript.
Create
(string.Empty, scriptOptions).GetCompilation();
274
var compilation = CSharpScript.
Create
(string.Empty, scriptOptions).GetCompilation();
311
var compilation = CSharpScript.
Create
(string.Empty, scriptOptions).GetCompilation();