-
Sometimes it's not possible to specify arguments directly in a call. Instead I have to be able to retrieve them for assertions.
I currently do that by using
```
var arg = (IEnumerable) repos.Receive…
-
`System.TypeLoadException : Could not load type 'Castle.Core.Internal.CollectionExtensions' from assembly 'Castle.Core, Version=5.0.0.0` after updating from Moq 4.18.3 to Moq 4.18.4
-
The call to Verify() raises a NullReferenceException when trying to format Performed Invocations with the following setup :
```
Mock mockDbContext = new Mock();
Mock mockDbSet = new Mock();
mock…
-
Install-Package : Could not install package 'Moq 4.2.1312.1622'. You are trying to install this package into a project that targets '.NETCore,Version=v4.5.1', but the package does not contain any asse…
-
The code example fails and there is no possibility to use default interface implementation in a mock.
```c#
void Main()
{
var m = new Mock(MockBehavior.Strict)
{
CallBase = true
};
…
-
I have the following setup and using [Moq](https://www.nuget.org/packages/Moq/) version 4.13.1. I am not sure this is a bug or not but I am wondering how can I get around this problem and pass null to…
-
When upgrading from Moq 4.10.0 to 4.15.2 and mocking an interface with thousands of methods the cost of creating the runtime mock is significant which slows down test runs. Yes I know that god objects…
-
We have a unit test that verifies the message we receive when a sequenced setup is not run, but with version 4.10+ the message is no longer displaying the expression. Instead, it displays the full nam…
-
I may have found a bug/issue while using `Verify(Expression, Times, string)`.
A suspicious `NullReferenceException` is triggered in `Moq.Match.Moq.IMatcher.Matches(Object, Type)`.
I created [a s…
-
Hi,
We have a (severe) issue with Moq and I hope you can help us out. A little background:
We use our own private nuget repository so that we have control over which packages are used throughout t…