18 references to AddReferences
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (5)
InteractiveSessionReferencesTests.cs (5)
62var newOptions = s0.Script.Options.AddReferences(typeof(Process).Assembly); 182var options0 = ScriptOptions.AddReferences( 197var options1 = options0.AddReferences(typeof(System.Xml.XmlDocument).Assembly); 228AddReferences(typeof(System.Data.DataSet).Assembly); 499AddReferences(typeof(C).Assembly, typeof(C).Assembly);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (9)
InteractiveSessionTests.cs (9)
212AddReferences( 412CSharpScript.Create("using InteractiveFixtures.C;", ScriptOptions.AddReferences(HostAssembly)). 423var s0 = CSharpScript.RunAsync("", ScriptOptions.AddReferences(HostAssembly)); 1000var options = ScriptOptions.AddReferences( 1116AddReferences(typeof(Task).GetTypeInfo().Assembly). 1134AddReferences(typeof(Task).GetTypeInfo().Assembly). 1368AddReferences(typeof(Enumerable).GetTypeInfo().Assembly); 1379AddReferences(typeof(Enumerable).GetTypeInfo().Assembly); 1446var options = ScriptOptions.AddReferences(HostAssembly);
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
ScriptOptionsTests.cs (4)
26AddReferences(typeof(int).GetTypeInfo().Assembly). 27AddReferences(typeof(int).GetTypeInfo().Assembly). 47Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((Assembly[])null)); 48Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences(new Assembly[] { null }));