Skip to content

Commit

Permalink
Capturing broken QuickTips for hidden methods in test - references #50
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Jan 21, 2015
1 parent 438eae2 commit 5f27136
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions vsintegration/src/unittests/Tests.LanguageService.QuickInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,27 @@ type QuickInfoTests() =
f = (fun ((text, _), _) -> printfn "actual %s" text; Assert.IsTrue(text.Contains "tooltip for operator"))
)

[<Test>]
member public this.``QuickInfo.HiddenMember``() =
// Tooltips showed hidden members - #50
let source = """
open System.ComponentModel
type TypeU = { Element : string }
with
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<CompilerMessageAttribute("This method is intended for use in generated code only.", 10001, IsHidden=true, IsError=false)>]
member x._Print = x.Element.ToString()
let u = { Element = "abc" }
"""
this.CheckTooltip(
code = source,
marker = "ypeU =",
atStart = true,
f = (fun ((text, _), _) -> printfn "actual %s" text; Assert.IsFalse(text.Contains "member _Print"))
)

[<Test>]
member public this.``QuickInfo.OverriddenMethods``() =
let source = """
Expand Down

0 comments on commit 5f27136

Please sign in to comment.