From 23a0b3a9e705ec6051bdbcf7ccd0e355742a6bdc Mon Sep 17 00:00:00 2001 From: Peter Semkin Date: Thu, 7 Jul 2022 17:38:25 +0200 Subject: [PATCH] An extra test for the tooltips --- .../tests/UnitTests/QuickInfoTests.fs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/vsintegration/tests/UnitTests/QuickInfoTests.fs b/vsintegration/tests/UnitTests/QuickInfoTests.fs index ff460f4514..d255f0f3d3 100644 --- a/vsintegration/tests/UnitTests/QuickInfoTests.fs +++ b/vsintegration/tests/UnitTests/QuickInfoTests.fs @@ -444,7 +444,7 @@ module Test = () [] -let ``Automation.LetBindings.InsideType``() = +let ``Automation.LetBindings.InsideType.Instance``() = let code = """ namespace FsTest @@ -459,3 +459,20 @@ module Test = StringAssert.StartsWith(expectedSignature, tooltip) () + +[] +let ``Automation.LetBindings.InsideType.Static``() = + let code = """ +namespace FsTest + +module Test = + type T() = + static let fu$$nc x = () +""" + + let expectedSignature = "val func: x: 'a -> unit" + + let tooltip = GetQuickInfoTextFromCode code + + StringAssert.StartsWith(expectedSignature, tooltip) + ()