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