private async Task TestNoDataTipAsync(string markup)
 {
     await TestSpanGetterAsync(markup, async (document, position, expectedSpan) =>
     {
         var result = await DataTipInfoGetter.GetInfoAsync(document, position, CancellationToken.None);
         Assert.True(result.IsDefault);
     });
 }
Beispiel #2
0
 private void TestNoDataTip(string markup)
 {
     TestSpanGetter(markup, (document, position, expectedSpan) =>
     {
         var result = DataTipInfoGetter.GetInfoAsync(document, position, CancellationToken.None).WaitAndGetResult(CancellationToken.None);
         Assert.True(result.IsDefault);
     });
 }
        private async Task TestAsync(string markup, string expectedText = null)
        {
            await TestSpanGetterAsync(markup, async (document, position, expectedSpan) =>
            {
                var result = await DataTipInfoGetter.GetInfoAsync(document, position, CancellationToken.None);

                Assert.Equal(expectedSpan, result.Span);
                Assert.Equal(expectedText, result.Text);
            });
        }
Beispiel #4
0
        private void Test(string markup, string expectedText = null)
        {
            TestSpanGetter(markup, (document, position, expectedSpan) =>
            {
                var result = DataTipInfoGetter.GetInfoAsync(document, position, CancellationToken.None).WaitAndGetResult(CancellationToken.None);

                Assert.Equal(expectedSpan, result.Span);
                Assert.Equal(expectedText, result.Text);
            });
        }