8 references to WithReferences
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
582
ScriptOptions.
WithReferences
(libRef),
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (3)
InteractiveSessionTests.cs (1)
1342
ScriptOptions.
WithReferences
(libRef.WithAliases(new[] { "Hidden" })).WithImports("Hidden::N"));
ScriptTests.cs (2)
198
, ScriptOptions.
WithReferences
(MscorlibRef, SystemRef, SystemCoreRef, CSharpRef));
213
, ScriptOptions.
WithReferences
(MscorlibRef, SystemRef, SystemCoreRef, CSharpRef));
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineHelpers.cs (1)
22
return options.
WithReferences
(Array.Empty<MetadataReference>()).WithImports(Array.Empty<string>());
Microsoft.CodeAnalysis.Scripting.UnitTests (3)
ScriptOptionsTests.cs (3)
73
options = empty.
WithReferences
(assemblyRef, assemblyRef);
83
Assert.Throws<ArgumentNullException>("references", () => options.
WithReferences
((MetadataReference[])null));
86
Assert.Throws<ArgumentNullException>("references[0]", () => options.
WithReferences
(new MetadataReference[] { null }));