コード例 #1
0
        public static void TryCreateCompletionSourceReturnsTemplateCompletionSource()
        {
            var provider = new TemplateCompletionSourceProvider();
            var buffer   = new FakeTextBuffer(string.Empty);

            Assert.NotNull(provider.TryCreateCompletionSource(buffer));
        }
コード例 #2
0
 public static void TryCreateCompletionSourceReturnsSameCompletionSourceForSameBuffer()
 {
     var provider = new TemplateCompletionSourceProvider();
     var buffer = new FakeTextBuffer(string.Empty);
     var completionSource1 = provider.TryCreateCompletionSource(buffer);
     var completionSource2 = provider.TryCreateCompletionSource(buffer);
     Assert.Same(completionSource1, completionSource2);
 }
コード例 #3
0
        public static void TryCreateCompletionSourceReturnsSameCompletionSourceForSameBuffer()
        {
            var provider          = new TemplateCompletionSourceProvider();
            var buffer            = new FakeTextBuffer(string.Empty);
            var completionSource1 = provider.TryCreateCompletionSource(buffer);
            var completionSource2 = provider.TryCreateCompletionSource(buffer);

            Assert.Same(completionSource1, completionSource2);
        }
コード例 #4
0
 public static void TryCreateCompletionSourceReturnsTemplateCompletionSource()
 {
     var provider = new TemplateCompletionSourceProvider();
     var buffer = new FakeTextBuffer(string.Empty);
     Assert.NotNull(provider.TryCreateCompletionSource(buffer));
 }