moq
moq copied to clipboard
The most popular and friendly mocking framework for .NET
# devlooped/oss - NoTargets/Traversal SDKs now support central package versions too https://github.com/devlooped/oss/commit/afca922 - Enable floating versions for central packages by default https://github.com/devlooped/oss/commit/b1d14c6 - Update .gitignore with BenchmarkDotNet artifacts default path...
Regarding the class `Moq.Tests.MatchersFixture`, given that the setups in the unit test method `MatchesIsInVariadicParameters()` are: ```csharp mock.Setup(x => x.Echo(It.IsIn(1, 2, 3, 4, 5))).Returns(1); mock.Setup(x => x.Echo(It.IsIn(6, 7, 8, 9, 10))).Returns(2);...
Would it be possible to add a member like `Returns(void)` to the Moq language so that void methods could chain a post-invocation `Callback(...)`? [](https://www.devlooped.com/SponsorLink/github/issues/?s=devlooped) [](https://www.devlooped.com/SponsorLink/github/issues/?s=devlooped) [ from 3.2.5 to 3.2.8. Release notes Sourced from rexml's releases. REXML 3.2.8 - 2024-05-16 Fixes Suppressed a warning REXML 3.2.7 - 2024-05-16 Improvements Improve parse performance by using...
Moq Version: 4.20.70 I have one MediatR behavior like this: ```` public class RequestValidationBehaviour(IEnumerable validators) : IPipelineBehavior where TRequest : notnull { public async Task Handle(TRequest request, RequestHandlerDelegate next, CancellationToken...
## Category * [x] Feature request ## Describe the feature When mocking async methods that require a cancellation token you can use `It.IsAny()` syntax like this: ``` myMock.Setup(m => m.DoSomethingAsync(It.IsAny()));...
## Describe the Bug The website referenced in the README, https://moq.github.io/moq/, is returning a 404. Checking [other deployments](https://github.com/devlooped/moq/deployments), the most recent one was over 5 months ago to https://www.devlooped.com/moq/ which...
## Describe the Bug Using the code shown below, we get the following error: > System.ArgumentException : Could not determine the correct positions for all argument matchers (1 in total)...