10 references to WithImports
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
InteractiveSessionTests.cs (2)
11761 + 1", ScriptOptions.WithImports("System")); 1342ScriptOptions.WithReferences(libRef.WithAliases(new[] { "Hidden" })).WithImports("Hidden::N"));
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineHelpers.cs (1)
22return options.WithReferences(Array.Empty<MetadataReference>()).WithImports(Array.Empty<string>());
Microsoft.CodeAnalysis.Scripting.UnitTests (7)
ScriptOptionsTests.cs (7)
143Assert.Throws<ArgumentNullException>("imports", () => options.WithImports((string[])null)); 144Assert.Throws<ArgumentNullException>("imports[0]", () => options.WithImports([null])); 153options.WithImports(""); 154options.WithImports("blah."); 155options.WithImports("b\0lah"); 156options.WithImports(".blah"); 162var scriptOptions = ScriptOptions.Default.WithImports(["System", "System.IO"]);