提交 c6b6afa1 编写于 作者: C Cyrus Najmabadi

Merge branch 'inlineHints2' into inlineHints3

......@@ -14,11 +14,10 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.InlineHints
Using workspace = TestWorkspace.Create(test)
WpfTestRunner.RequireWpfFact($"{NameOf(AbstractInlineParameterNameHintsTests)}.{NameOf(Me.VerifyParamHints)} creates asynchronous taggers")
workspace.TryApplyChanges(workspace.CurrentSolution.WithOptions(
workspace.Options.WithChangedOption(
InlineHintsOptions.EnabledForParameters,
workspace.CurrentSolution.Projects.Single().Language,
optionIsEnabled)))
workspace.TryApplyChanges(workspace.CurrentSolution.WithOptions(workspace.Options.WithChangedOption(
InlineHintsOptions.EnabledForParameters,
workspace.CurrentSolution.Projects().First().Language,
optionIsEnabled)))
Dim hostDocument = workspace.Documents.Single()
Dim snapshot = hostDocument.GetTextBuffer().CurrentSnapshot
......@@ -33,17 +32,13 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.InlineHints
Dim nameAndSpansList = hostDocument.AnnotatedSpans.SelectMany(
Function(name) name.Value,
Function(name, span) _
New With {.Name = name.Key,
.Span = span
})
Function(name, span) New With {.Name = name.Key, span})
For Each nameAndSpan In nameAndSpansList.OrderBy(Function(x) x.Span.Start)
expectedTags.Add(nameAndSpan.Name + ":" + nameAndSpan.Span.Start.ToString())
Next
AssertEx.Equal(expectedTags, producedTags)
End Using
End Function
End Class
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册