4 references to WithReferences
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
1122
var s0 = await CSharpScript.RunAsync("C c;", ScriptOptions.
WithReferences
(libFile.Path));
Microsoft.CodeAnalysis.Scripting.UnitTests (3)
ScriptOptionsTests.cs (3)
65
var options = empty.
WithReferences
("System.Linq", "system.linq");
95
Assert.Throws<ArgumentNullException>("references", () => options.
WithReferences
((string[])null));
98
Assert.Throws<ArgumentNullException>("references[0]", () => options.
WithReferences
(new string[] { null }));