5 references to AddImports
Microsoft.CodeAnalysis.Scripting (1)
ScriptOptions.cs (1)
352
=>
AddImports
((IEnumerable<string>)imports);
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
ScriptOptionsTests.cs (4)
125
Assert.Throws<ArgumentNullException>("imports", () => options.
AddImports
((IEnumerable<string>)null));
126
Assert.Throws<ArgumentNullException>("imports[0]", () => options.
AddImports
((IEnumerable<string>)new string[] { null }));
128
Assert.Throws<ArgumentNullException>("imports", () => options.
AddImports
(default(ImmutableArray<string>)));
129
Assert.Throws<ArgumentNullException>("imports[0]", () => options.
AddImports
(ImmutableArray.Create((string)null)));