on <<<<< it throws an System.ArgumentException with this message:
Object instance was not created by Moq.
The stack trace is:
at Moq.Mock.Get[T](T mocked)
at Ninject.MockingKernel.Moq.MoqMockingKernel.GetMock[T]()
at Tests.Kernel.Users.Moq.UsersManagementTests.InitializationWithUsersTest() in D:\projects\living\clients\NetCore\Tests.Kernel\Users\UsersTestsMoq.cs:line 41
Which is the difference between MockingKernel.Get<T> and MockingKernel.GetMock()?
I've tried this:
on
<<<<<
it throws anSystem.ArgumentException
with this message:The stack trace is:
Which is the difference between
MockingKernel.Get<T>
andMockingKernel.GetMock()
?