18 writes to Result
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (18)
CodeGeneration\CodeGenerationTests.cs (18)
46
testContext.
Result
= await testContext.Service.AddNamespaceAsync(
80
testContext.
Result
= await testContext.Service.AddFieldAsync(
94
testContext.
Result
= testContext.Document.WithSyntaxRoot(newRoot);
122
testContext.
Result
= await testContext.Service.AddMethodAsync(
167
testContext.
Result
= await testContext.Service.AddMethodAsync(
211
testContext.
Result
= await testContext.Service.AddMembersAsync(
292
testContext.
Result
= await testContext.Service.AddMethodAsync(
318
testContext.
Result
= testContext.Document.WithSyntaxRoot((await testContext.Document.GetSyntaxRootAsync()).ReplaceNode(oldSyntax, newSyntax));
334
testContext.
Result
= testContext.Document.WithSyntaxRoot((await testContext.Document.GetSyntaxRootAsync()).ReplaceNode(oldMemberSyntax, newMemberSyntax));
360
testContext.
Result
= await testContext.Service.AddNamedTypeAsync(
400
testContext.
Result
= await testContext.Service.AddEventAsync(
493
testContext.
Result
= await testContext.Service.AddPropertyAsync(
522
testContext.
Result
= await testContext.Service.AddNamedTypeAsync(
560
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(oldNode, newNode));
579
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(declarationNode, newNode));
631
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(declarationNode, updatedDeclarationNode));
664
testContext.
Result
= await testContext.Service.AddMembersAsync(solutionContext, (INamedTypeSymbol)destination, members, CancellationToken.None);
668
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)
971
this.Document = this.
Result
;