Hi,
I am using Mocking in my Test project. When I change Resolve<> from IBus to IMessageHandlerContext it it throwing the exception. Mock.Get is throwing exception ‘Invalid verify on a non-virtual (overridable in VB) member: a => a.Send(It.IsAny())’. I tired multiple ways, As time concern I cannot move from this existing testing to another. Could you please help me on this
Mock.Get(container.Resolve())
.Verify(a => a.Send(It.IsAny()), Times.Exactly(0));