4 references to WithMainTypeName
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\CSharpCompilationOptionsTests.cs (1)
75
TestHiddenProperty((old, value) => old.
WithMainTypeName
(value), opt => opt.MainTypeName, "Goo.Bar");
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\TryApplyChangesTests.cs (3)
79
Assert.True(workspace.TryApplyChanges(project.WithCompilationOptions(project.CompilationOptions!.
WithMainTypeName
("Test")).Solution));
92
Assert.True(workspace.TryApplyChanges(project.WithCompilationOptions(project.CompilationOptions!.
WithMainTypeName
("Test")).Solution));
106
() => workspace.TryApplyChanges(project.WithCompilationOptions(project.CompilationOptions!.
WithMainTypeName
("WrongThing")).Solution));