Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5f27136

Browse files
committed
Capturing broken QuickTips for hidden methods in test - referencesdotnet#50
1 parent438eae2 commit5f27136

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

‎vsintegration/src/unittests/Tests.LanguageService.QuickInfo.fs‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,27 @@ type QuickInfoTests() =
165165
f=(fun((text,_),_)-> printfn"actual%s" text; Assert.IsTrue(text.Contains"tooltip for operator"))
166166
)
167167

168+
[<Test>]
169+
memberpublicthis.``QuickInfo.HiddenMember``()=
170+
// Tooltips showed hidden members - #50
171+
letsource="""
172+
open System.ComponentModel
173+
174+
type TypeU = { Element : string }
175+
with
176+
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
177+
[<CompilerMessageAttribute("This method is intended for use in generated code only.", 10001, IsHidden=true, IsError=false)>]
178+
member x._Print = x.Element.ToString()
179+
180+
let u = { Element = "abc" }
181+
"""
182+
this.CheckTooltip(
183+
code= source,
184+
marker="ypeU =",
185+
atStart=true,
186+
f=(fun((text,_),_)-> printfn"actual%s" text; Assert.IsFalse(text.Contains"member _Print"))
187+
)
188+
168189
[<Test>]
169190
memberpublicthis.``QuickInfo.OverriddenMethods``()=
170191
letsource="""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp