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