28 references to GetMocks
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (28)
IntelliSense\SignatureHelpControllerTests.vb (28)
34GetMocks(controller).PresenterSession.Setup(Sub(p) p.Dismiss())
38Assert.Equal(0, GetMocks(controller).Provider.GetItemsCount)
45GetMocks(controller).Presenter.Verify(Function(p) p.CreateSession(It.IsAny(Of ITextView), It.IsAny(Of ITextBuffer), It.IsAny(Of ISignatureHelpSession)), Times.Once)
55GetMocks(controller).PresenterSession.Verify(Sub(p) p.Dismiss(), Times.Once)
62GetMocks(controller).PresenterSession.Setup(Sub(p) p.Dismiss())
67GetMocks(controller).PresenterSession.Verify(Sub(p) p.Dismiss(), Times.Once)
74GetMocks(controller).PresenterSession.Setup(Sub(p) p.SelectPreviousItem())
79GetMocks(controller).PresenterSession.Verify(Sub(p) p.SelectPreviousItem(), Times.Once)
100Sub() GetMocks(controller).Buffer.Insert(0, " "), TestCommandExecutionContext.Create())
102GetMocks(controller).PresenterSession.Setup(Sub(p) p.Dismiss())
107GetMocks(controller).PresenterSession.Verify(Sub(p) p.Dismiss(), Times.Once)
122GetMocks(controller).PresenterSession.Setup(Sub(p) p.Dismiss())
123GetMocks(controller).PresenterSession.Setup(Function(p) p.EditorSessionIsActive).Returns(False)
142GetMocks(controller).PresenterSession.Setup(Sub(p) p.Dismiss())
143GetMocks(controller).PresenterSession.Setup(Function(p) p.EditorSessionIsActive).Returns(False)
178Sub() GetMocks(controller).Buffer.Insert(0, " "), TestCommandExecutionContext.Create())
180GetMocks(controller).PresenterSession.Setup(Sub(p) p.SelectPreviousItem())
192GetMocks(controller).PresenterSession.Verify(Sub(p) p.PresentItems(It.IsAny(Of ITrackingSpan), It.IsAny(Of IList(Of SignatureHelpItem)),
204GetMocks(controller).PresenterSession.Setup(Sub(p) p.SelectNextItem())
209GetMocks(controller).PresenterSession.Verify(Sub(p) p.SelectNextItem(), Times.Once)
218GetMocks(controller).PresenterSession.Setup(Sub(p) p.Dismiss())
223GetMocks(controller).PresenterSession.Verify(Sub(p) p.Dismiss(), Times.Once)
230Mock.Get(GetMocks(controller).View.Object.Caret).Raise(Sub(c) AddHandler c.PositionChanged, Nothing, New CaretPositionChangedEventArgs(Nothing, Nothing, Nothing))
234Assert.Equal(2, GetMocks(controller).Provider.GetItemsCount)
243Sub() GetMocks(controller).Buffer.Insert(0, ")"), TestCommandExecutionContext.Create())
247Assert.Equal(2, GetMocks(controller).Provider.GetItemsCount)
256Sub() GetMocks(controller).Buffer.Insert(0, "a"), TestCommandExecutionContext.Create())
258GetMocks(controller).DocumentProvider.Verify(Function(p) p.GetDocument(It.IsAny(Of ITextSnapshot), It.IsAny(Of CancellationToken)), Times.Never)