18 writes to Result
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (18)
CodeGeneration\CodeGenerationTests.cs (18)
49
testContext.
Result
= await testContext.Service.AddNamespaceAsync(
84
testContext.
Result
= await testContext.Service.AddFieldAsync(
99
testContext.
Result
= testContext.Document.WithSyntaxRoot(newRoot);
127
testContext.
Result
= await testContext.Service.AddMethodAsync(
173
testContext.
Result
= await testContext.Service.AddMethodAsync(
215
testContext.
Result
= await testContext.Service.AddMembersAsync(
298
testContext.
Result
= await testContext.Service.AddMethodAsync(
325
testContext.
Result
= testContext.Document.WithSyntaxRoot((await testContext.Document.GetSyntaxRootAsync()).ReplaceNode(oldSyntax, newSyntax));
341
testContext.
Result
= testContext.Document.WithSyntaxRoot((await testContext.Document.GetSyntaxRootAsync()).ReplaceNode(oldMemberSyntax, newMemberSyntax));
367
testContext.
Result
= await testContext.Service.AddNamedTypeAsync(
408
testContext.
Result
= await testContext.Service.AddEventAsync(
502
testContext.
Result
= await testContext.Service.AddPropertyAsync(
532
testContext.
Result
= await testContext.Service.AddNamedTypeAsync(
556
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(oldNode, newNode));
575
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(declarationNode, newNode));
627
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(declarationNode, updatedDeclarationNode));
661
testContext.
Result
= await testContext.Service.AddMembersAsync(solutionContext, (INamedTypeSymbol)destination, members, CancellationToken.None);
665
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)
968
this.Document = this.
Result
;