Ejemplo n.º 1
0
        public static void TryCreateCompletionSourceReturnsTemplateCompletionSource()
        {
            var provider = new TemplateCompletionSourceProvider();
            var buffer   = new FakeTextBuffer(string.Empty);

            Assert.NotNull(provider.TryCreateCompletionSource(buffer));
        }
 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);
 }
Ejemplo n.º 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);
        }
 public static void TryCreateCompletionSourceReturnsTemplateCompletionSource()
 {
     var provider = new TemplateCompletionSourceProvider();
     var buffer = new FakeTextBuffer(string.Empty);
     Assert.NotNull(provider.TryCreateCompletionSource(buffer));
 }