-
I'm working on some code where an object subscribes a private method to an event of a passed-in class. In my unit tests I'd like to see how many handlers have been attached to the event. There should …
-
I faced a similar issue when upgrading to the latest moq version 4.16.1 from 4.10.0
Earlier - the verify() of a method with "It.IsAny\()", when invoked with parameter null -> This scenario was cons…
-
Great starter project! It has been really helpful in starting my web app.
One thing I would love to see added is a Test Project. I am not really sure how to integrate testing into the project with Ni…
-
When trying to mock the following interface:
public interface IMyInterface
{
void MyAction(int x);
int MyFunc(int x);
}
By the following code:
Mo…
-
Hello there!
It seems that when an exception is raised inside an event raise, it gets caught by Moq and it goes undetected. Might have to do with it being async?
Example:
```
internal class…
-
This seems to have problems with packages. I right clicked on a target assembly and chose Generate Tests and it started to and then put up a full screen error dialog
![SentryOne right click project …
-
The following code gives a StackOverflowException in Moq 4.2.1502.911, but not in 4.1.1309.1617:
``` C#
public interface IFoo
{
IBar Bar { get; }
}
public interface IBar
{
IBar SomeOtherBar …
-
Not a bug, but notes from my recent build from git head on a newly installed Ubuntu 18.04 in a VirtualBox on a Gentoo host. Probably most useful in updated requirements in README. It's pretty abbrev…
-
- Algolia Client Version: 6.14.0
- Language Version: C# .net6
### Description
`ISearchClient` should depend on interfaces and not concrete types. This breaks [Liskov substitution principle](h…
-
Hi,
I'am working for a major company. My job is to port our mocking-framework, currently written in RhinoMocks, over to Moq.
With RhinoMocks we are able to Stub/Expect on extension methods.
Wit…