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); }