79 references to GetUniqueName
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (23)
CodeGen\CodeGenDynamicTests.cs (9)
144return CreateCompilationWithMscorlib40(source, new[] { systemCore ?? SystemCoreRef }, assemblyName: GetUniqueName()).EmitToImageReference(); 277var systemCoreRef = CreateCompilationWithMscorlib40(SystemCoreSource, assemblyName: GetUniqueName()).EmitToImageReference(); 296var systemCoreRef = CreateCompilationWithMscorlib40(SystemCoreSource, assemblyName: GetUniqueName()).EmitToImageReference(); 317var systemCoreRef = CreateCompilationWithMscorlib40(SystemCoreSource, assemblyName: GetUniqueName()).EmitToImageReference(); 456var systemCoreRef = CreateCompilationWithMscorlib40(systemCoreSource, assemblyName: GetUniqueName()).EmitToImageReference(); 485var systemCoreRef = CreateCompilationWithMscorlib40(systemCoreSource, assemblyName: GetUniqueName()).EmitToImageReference(); 11467var vb = CreateVisualBasicCompilation(GetUniqueName(), vbSource); 11569var vb = CreateVisualBasicCompilation(GetUniqueName(), vbSource); 11678var vb = CreateVisualBasicCompilation(GetUniqueName(), vbSource);
CodeGen\CodeGenMscorlib.cs (6)
247var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 281var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 318var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 356var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName()); 415var compilation1 = CreateEmptyCompilation(source1, assemblyName: GetUniqueName()); 477var compilation1 = CreateEmptyCompilation(source1, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute(), assemblyName: GetUniqueName());
CodeGen\CodeGenTupleEqualityTests.cs (1)
65string name = GetUniqueName();
CodeGen\EventTests.cs (1)
646var compilation1 = CreateEmptyCompilation(source1, assemblyName: GetUniqueName(), parseOptions: parseOptions);
Emit\CompilationEmitTests.cs (6)
1203string name = GetUniqueName(); 1259string name = GetUniqueName(); 1269string name2 = GetUniqueName(); 1886string name = GetUniqueName(); 1903var name = GetUniqueName(); 2094string name = GetUniqueName();
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
PDB\CheckSumTest.cs (2)
23GetUniqueName(), 296GetUniqueName(),
PDB\PDBUsingTests.cs (6)
572assemblyName: GetUniqueName(), 789assemblyName: GetUniqueName(), 1411assemblyName: GetUniqueName(), 1558assemblyName: GetUniqueName(), 1864assemblyName: GetUniqueName(), 2042assemblyName: GetUniqueName(),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Attributes\AttributeTests_Assembly.cs (1)
1006string assemblyName = GetUniqueName();
Attributes\AttributeTests_IsByRefLike.cs (1)
998var compilation1 = CreateEmptyCompilation(new[] { source1, compilerFeatureRequiredAttribute }, assemblyName: GetUniqueName());
Attributes\AttributeTests_Security.cs (2)
1504GetUniqueName(), 1626GetUniqueName(),
Attributes\InternalsVisibleToAndStrongNameTests.cs (5)
149GetUniqueName(), 179GetUniqueName(), 238assemblyName: GetUniqueName(), 308GetUniqueName(), 355GetUniqueName(),
OverloadResolutionPriorityTests.cs (1)
1787var vb = CreateVisualBasicCompilation(GetUniqueName(), vbSource, referencedAssemblies: TargetFrameworkUtil.NetStandard20References, referencedCompilations: [attrRef]);
Semantics\CollectionExpressionTests.cs (3)
9232string assemblyA = GetUniqueName(); 12244string assemblyA = GetUniqueName(); 19917string assemblyA = GetUniqueName();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\DelegateTypeTests.cs (1)
14225var attributeAssemblyName = GetUniqueName();
Semantics\ForEachTests.cs (1)
3070var compilation1 = CreateEmptyCompilation(source1, assemblyName: GetUniqueName());
Semantics\NativeIntegerTests.cs (3)
844var assemblyName = GetUniqueName(); 955var assemblyName = GetUniqueName(); 1047var assemblyName = GetUniqueName();
SourceGeneration\AdditionalSourcesCollectionTests.cs (1)
143names[i] = CSharpTestBase.GetUniqueName() + ".cs";
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Compilation\CompilationAPITests.cs (1)
2383var assemblyName = GetUniqueName();
SymbolDisplay\SymbolDisplayTests.cs (3)
5493var compB = CreateVisualBasicCompilation(GetUniqueName(), "", referencedAssemblies: new[] { MscorlibRef, refA }); 5672var compB = CreateVisualBasicCompilation(GetUniqueName(), "", referencedAssemblies: new[] { MscorlibRef, refA }); 5697var compB = CreateVisualBasicCompilation(GetUniqueName(), "", referencedAssemblies: new[] { MscorlibRef, refA });
Symbols\AssemblyAndNamespaceTests.cs (1)
29var simpleName = GetUniqueName();
Symbols\ExtensionMethodTests.cs (1)
2426assemblyName: GetUniqueName(),
Symbols\Source\ExternAliasTests.cs (1)
111GetUniqueName(),
Symbols\SymbolErrorTests.cs (1)
99var name1 = GetUniqueName();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
BasicCompilationUtils.cs (1)
34assemblyName = TestBase.GetUniqueName();
CSharpTestBase.cs (5)
889var compilation = CreateExperimentalCompilationWithMscorlib461(source, feature, references, options, parseOptions, assemblyName: GetUniqueName()); 1003var compilation = CreateCompilation(source, references, options, parseOptions, targetFramework, assemblyName: GetUniqueName()); 1314string.IsNullOrEmpty(assemblyName) ? GetUniqueName() : assemblyName, 1463GetUniqueName(), 1486GetUniqueName(),
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
CSharpFunctionResolverTests.cs (2)
409var nameA = GetUniqueName(); 419var nameB = GetUniqueName();
Microsoft.CodeAnalysis.Test.Utilities (3)
CommonTestBase.cs (2)
358assemblyName = assemblyIdentity?.Name ?? GetUniqueName(); 444assemblyName = GetUniqueName();
Platform\Desktop\DesktopRuntimeUtil.cs (1)
67var module = assembly.DefineDynamicModule(CommonTestBase.GetUniqueName(), name);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
Attributes\InternalsVisibleToAndStrongNameTests.vb (6)
108GetUniqueName(), 138GetUniqueName(), 202GetUniqueName(), 214GetUniqueName(), 260GetUniqueName(), 274GetUniqueName(),
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
2598Dim assemblyName = GetUniqueName()
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
BasicTestBase.vb (1)
433GetUniqueName(),
VBCSCompiler.UnitTests (2)
CompilerServerTests.cs (1)
1468var result = ProcessUtilities.Run(serverExe, arguments: $"-pipename:{GetUniqueName()}", workingDirectory: workingDirectory);
VBCSCompilerServerTests.cs (1)
40var baseDirectory = Path.Combine(Path.GetTempPath(), TestBase.GetUniqueName());