18 writes to Result
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (18)
CodeGeneration\CodeGenerationTests.cs (18)
47
testContext.
Result
= await testContext.Service.AddNamespaceAsync(
81
testContext.
Result
= await testContext.Service.AddFieldAsync(
95
testContext.
Result
= testContext.Document.WithSyntaxRoot(newRoot);
123
testContext.
Result
= await testContext.Service.AddMethodAsync(
168
testContext.
Result
= await testContext.Service.AddMethodAsync(
212
testContext.
Result
= await testContext.Service.AddMembersAsync(
293
testContext.
Result
= await testContext.Service.AddMethodAsync(
319
testContext.
Result
= testContext.Document.WithSyntaxRoot((await testContext.Document.GetSyntaxRootAsync()).ReplaceNode(oldSyntax, newSyntax));
335
testContext.
Result
= testContext.Document.WithSyntaxRoot((await testContext.Document.GetSyntaxRootAsync()).ReplaceNode(oldMemberSyntax, newMemberSyntax));
361
testContext.
Result
= await testContext.Service.AddNamedTypeAsync(
401
testContext.
Result
= await testContext.Service.AddEventAsync(
494
testContext.
Result
= await testContext.Service.AddPropertyAsync(
523
testContext.
Result
= await testContext.Service.AddNamedTypeAsync(
561
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(oldNode, newNode));
580
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(declarationNode, newNode));
632
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(declarationNode, updatedDeclarationNode));
665
testContext.
Result
= await testContext.Service.AddMembersAsync(solutionContext, (INamedTypeSymbol)destination, members, CancellationToken.None);
669
testContext.
Result
= await testContext.Service.AddNamespaceOrTypeAsync(solutionContext, (INamespaceSymbol)destination, symbol, CancellationToken.None);
1 reference to Result
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
972
this.Document = this.
Result
;