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