6 references to AddReferences
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
InteractiveSessionReferencesTests.cs (2)
479
var options = ScriptOptions.
AddReferences
(badTypeRef);
537
var s0 = await CSharpScript.Create("new C()", options: ScriptOptions.
AddReferences
(portableLibRef), assemblyLoader: loader).RunAsync();
Microsoft.CodeAnalysis.Scripting.UnitTests (3)
ScriptOptionsTests.cs (3)
28
AddReferences
(MetadataReference.CreateFromAssemblyInternal(typeof(int).GetTypeInfo().Assembly)).
41
Assert.Throws<ArgumentNullException>("references", () => options.
AddReferences
((MetadataReference[])null));
42
Assert.Throws<ArgumentNullException>("references[0]", () => options.
AddReferences
(new MetadataReference[] { null }));
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (1)
ScriptTests.vb (1)
26
Private ReadOnly DefaultOptions As ScriptOptions = ScriptOptions.
AddReferences
(s_msvbReference)