33 references to WithUsings
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\InteractiveUsingTests.cs (8)
53options: TestOptions.DebugDll.WithUsings("System", "System.IO.Path")); 66options: TestOptions.DebugDll.WithUsings("System.Text")); 159var options = TestOptions.DebugDll.WithUsings("System"); 268var options = TestOptions.DebugDll.WithUsings("System"); 292CreateSubmission("typeof(String)", options: TestOptions.DebugDll.WithUsings("System", "System")).VerifyDiagnostics(); 298var options = TestOptions.DebugDll.WithUsings("System"); 325var options = TestOptions.DebugDll.WithUsings("B"); 486options: TestOptions.DebugDll.WithSourceReferenceResolver(resolver).WithUsings("System.IO", "System.IO.Path"));
Semantics\ScriptSemanticsTests.cs (3)
142options: TestOptions.DebugExe.WithUsings("Hidden"), 162options: TestOptions.DebugExe.WithUsings("Hidden"), 210options: TestOptions.DebugExe.WithUsings("Hidden"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Compilation\CSharpCompilationOptionsTests.cs (8)
203var actual1 = new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(new[] { "A", "B" }).Usings; 209Assert.Equal(0, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings("A", "B").WithUsings(null).Usings.Count()); 210Assert.Equal(0, new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings("A", "B").WithUsings((string[])null).Usings.Count()); 212new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(new string[] { null }).VerifyErrors( 216new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(new string[] { "" }).VerifyErrors( 220new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(new string[] { "blah\0goo" }).VerifyErrors(
Compilation\UsedAssembliesTests.cs (9)
2339AssertUsedAssemblyReferences(CreateCompilation(Parse(source, options: TestOptions.Script), references: new[] { reference }, options: TestOptions.DebugDll.WithUsings(@using)), 4013options: TestOptions.DebugDll.WithUsings("C0")), 4017options: TestOptions.DebugDll.WithUsings("C0")), 4608options: TestOptions.DebugDll.WithUsings("N1.N2")), 4612options: TestOptions.DebugDll.WithUsings("N1.N2")), 4616options: TestOptions.DebugDll.WithUsings("N1")), 4620options: TestOptions.DebugDll.WithUsings("N1")), 4799options: TestOptions.DebugDll.WithUsings("N1.N2.E0")), 4803options: TestOptions.DebugDll.WithUsings("N1.N2.E0")),
Symbols\CompilationCreationTests.cs (1)
2843options: TestOptions.ReleaseDll.WithUsings("System.Console!", "Blah"));
Symbols\Source\FileModifierTests.cs (1)
3325var compilation = CreateCompilation(new[] { (source, "file1.cs"), (IsExternalInitTypeDefinition, "file2.cs") }, options: TestOptions.DebugExe.WithUsings("NS"));
Symbols\TypeTests.cs (2)
818TestOptions.ReleaseDll.WithUsings("System.Console")); 831TestOptions.ReleaseDll.WithUsings("System.Console").WithTopLevelBinderFlags(BinderFlags.IgnoreCorLibraryDuplicatedTypes));
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
CSharpDeterministicKeyBuilderTests.cs (1)
315var options = Options.WithUsings(usings);