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