24 references to AddImports
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
43
var options = ScriptOptions.
AddImports
("System.Diagnostics");
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (11)
InteractiveSessionTests.cs (11)
215
AddImports
(
463
var options = ScriptOptions.
AddImports
("System");
1117
AddImports
("System.Threading.Tasks");
1135
AddImports
("System.Threading.Tasks");
1367
AddImports
("System", "System.Linq").
1378
AddImports
("System", "System.Linq").
1384
var s2 = s1.ContinueWith("new List<int>()", options.
AddImports
("System.Collections.Generic"));
1392
var options = ScriptOptions.
AddImports
("?1", "?2");
1400
options = ScriptOptions.
AddImports
("");
1406
options = ScriptOptions.
AddImports
(".abc");
1412
options = ScriptOptions.
AddImports
("a\0bc");
Microsoft.CodeAnalysis.Scripting.UnitTests (12)
ScriptOptionsTests.cs (12)
107
AddImports
("").
108
AddImports
("blah.").
109
AddImports
("b\0lah").
110
AddImports
(".blah").
111
AddImports
("b\0lah").
112
AddImports
(".blah");
122
Assert.Throws<ArgumentNullException>("imports", () => options.
AddImports
((string[])null));
123
Assert.Throws<ArgumentNullException>("imports[0]", () => options.
AddImports
([null]));
132
options.
AddImports
("");
133
options.
AddImports
("blah.");
134
options.
AddImports
("b\0lah");
135
options.
AddImports
(".blah");