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(
209
testContext.
Result
= await testContext.Service.AddMembersAsync(
290
testContext.
Result
= await testContext.Service.AddMethodAsync(
316
testContext.
Result
= testContext.Document.WithSyntaxRoot((await testContext.Document.GetSyntaxRootAsync()).ReplaceNode(oldSyntax, newSyntax));
332
testContext.
Result
= testContext.Document.WithSyntaxRoot((await testContext.Document.GetSyntaxRootAsync()).ReplaceNode(oldMemberSyntax, newMemberSyntax));
358
testContext.
Result
= await testContext.Service.AddNamedTypeAsync(
398
testContext.
Result
= await testContext.Service.AddEventAsync(
491
testContext.
Result
= await testContext.Service.AddPropertyAsync(
520
testContext.
Result
= await testContext.Service.AddNamedTypeAsync(
543
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(oldNode, newNode));
562
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(declarationNode, newNode));
614
testContext.
Result
= testContext.Document.WithSyntaxRoot(testContext.SemanticModel.SyntaxTree.GetRoot().ReplaceNode(declarationNode, updatedDeclarationNode));
647
testContext.
Result
= await testContext.Service.AddMembersAsync(solutionContext, (INamedTypeSymbol)destination, members, CancellationToken.None);
651
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)
954
this.Document = this.
Result
;