50 references to WithModuleName
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
775return WithModuleName(moduleName);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (26)
CodeGen\CodeGenForEachTests.cs (1)
107var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"
CodeGen\CodeGenTests.cs (8)
3335var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "222333"); 6670var compilation = CompileAndVerifyWithMscorlib40(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @" 6793var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"3-5"); 6855var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"30"); 7009var compilation = CreateCompilationWithMscorlib461(source: source, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 7593var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @" 7876var compilation = CompileAndVerify(source, options: TestOptions.DebugExe.WithModuleName("MODULE")); 13962var compilation = CompileAndVerify(source, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: @"False
CodeGen\IndexerTests.cs (4)
423var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 571var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 719var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 944var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
CodeGen\SwitchTests.cs (8)
2899var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), 3046compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "True"); 3348var compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), 3673compVerifier = CompileAndVerify(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"), expectedOutput: "PASS"); 7853options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 7989comp = CreateCompilation(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 8093options: TestOptions.ReleaseExe.WithModuleName("MODULE")); 8302comp = CreateCompilation(text, options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
Emit\CompilationEmitTests.cs (4)
4048options: TestOptions.ReleaseModule.WithModuleName(name + extension)); 5309var comp1 = CreateCompilation(s1, options: TestOptions.ReleaseModule.WithModuleName("A")); 5313var comp2 = CreateCompilation(s2, options: TestOptions.ReleaseModule.WithModuleName("B"), references: new[] { ref1 }); 5317var comp3 = CreateCompilation(s3, options: TestOptions.ReleaseExe.WithModuleName("C"), references: new[] { ref1, ref2 });
Emit\DeterministicTests.cs (1)
481.WithModuleName(assemblyName);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PDBTests.cs (1)
2978var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithModuleName("MODULE"));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\AttributeTests_IsByRefLike.cs (1)
473CompileAndVerify(code2, options: options.WithModuleName("Assembly2"), references: new[] { comp1.Compilation.ToMetadataReference() }, symbolValidator: module =>
Attributes\AttributeTests_IsUnmanaged.cs (1)
744CompileAndVerify(code2, options: options.WithModuleName("Assembly2"), references: new[] { comp1.Compilation.ToMetadataReference() }, symbolValidator: module =>
Attributes\AttributeTests_ReadOnlyStruct.cs (1)
465CompileAndVerify(code2, options: options.WithModuleName("Assembly2"), references: new[] { comp1.Compilation.ToMetadataReference() }, symbolValidator: module =>
Attributes\AttributeTests_RefReadOnly.cs (1)
1190CompileAndVerify(code2, options: options.WithModuleName("Assembly2"), references: new[] { comp1.Compilation.ToMetadataReference() }, symbolValidator: module =>
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
1736.WithModuleName("a.dll")
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Compilation\CSharpCompilationOptionsTests.cs (8)
110TestProperty((old, value) => old.WithModuleName(value), opt => opt.ModuleName, "goo.dll"); 252Assert.Null(TestOptions.ReleaseDll.WithModuleName(null).ModuleName); 253TestOptions.ReleaseDll.WithModuleName("").VerifyErrors( 258TestOptions.ReleaseDll.WithModuleName("a\0a").VerifyErrors( 263TestOptions.ReleaseDll.WithModuleName("a\uD800b").VerifyErrors( 268TestOptions.ReleaseDll.WithModuleName("a\\b").VerifyErrors( 273TestOptions.ReleaseDll.WithModuleName("a/b").VerifyErrors( 278TestOptions.ReleaseDll.WithModuleName("a:b").VerifyErrors(
Compilation\ReferenceManagerTests.cs (3)
1706var b = CreateCompilation(srcB, references: new[] { aRef }, options: TestOptions.ReleaseModule.WithModuleName("mod.netmodule"), assemblyName: "B"); 2798var mRef = CreateCompilationWithMscorlib46("public interface M : B { }", new[] { bRef }, options: TestOptions.ReleaseModule.WithModuleName("M.netmodule")).EmitToImageReference(); 2799var nRef = CreateCompilationWithMscorlib46("public interface N : D { }", new[] { dRef }, options: TestOptions.ReleaseModule.WithModuleName("N.netmodule")).EmitToImageReference();
Symbols\ModuleInitializers\ModuleInitializersTests.cs (4)
830var comp1 = CreateCompilation(s1, options: moduleOptions.WithModuleName("A"), parseOptions: s_parseOptions); 847var comp2 = CreateCompilation(s2, options: moduleOptions.WithModuleName("B"), parseOptions: s_parseOptions, references: new[] { ref1 }); 854.WithModuleName("C"); 1068.WithModuleName("C");
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
CodeGen\WinRTCollectionTests.cs (1)
5190options: TestOptions.ReleaseExe.WithModuleName("MODULE"));
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
145.WithModuleName(GetStringOption(CompilerOptions.OPTID_MODULEASSEMBLY, defaultValue: null))