Skip to content

Commit 53c543c

Browse files
authored
An extra test for the tooltips
2 parents 267d0a5 + 23a0b3a commit 53c543c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

vsintegration/tests/UnitTests/QuickInfoTests.fs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ module Test =
444444
()
445445

446446
[<Test>]
447-
let ``Automation.LetBindings.InsideType``() =
447+
let ``Automation.LetBindings.InsideType.Instance``() =
448448
let code = """
449449
namespace FsTest
450450
@@ -459,3 +459,20 @@ module Test =
459459

460460
StringAssert.StartsWith(expectedSignature, tooltip)
461461
()
462+
463+
[<Test>]
464+
let ``Automation.LetBindings.InsideType.Static``() =
465+
let code = """
466+
namespace FsTest
467+
468+
module Test =
469+
type T() =
470+
static let fu$$nc x = ()
471+
"""
472+
473+
let expectedSignature = "val func: x: 'a -> unit"
474+
475+
let tooltip = GetQuickInfoTextFromCode code
476+
477+
StringAssert.StartsWith(expectedSignature, tooltip)
478+
()

0 commit comments

Comments
 (0)