moq icon indicating copy to clipboard operation
moq copied to clipboard

The most popular and friendly mocking framework for .NET

Results 107 moq issues
Sort by recently updated
recently updated
newest added

# 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...

dependencies

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);...

up-for-grabs
good first issue
stale

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(...)`? [![Back this issue](https://sponsorlink.blob.core.windows.net/public/separator.png "Back this issue")](https://www.devlooped.com/SponsorLink/github/issues/?s=devlooped) [![Back...

Should the documentation comments for `IVerifies.Verifiable()` and `IVerifies.Verifiable(string failMessage)` read: > mock.Setup( ... instead of: > mock.Expect( ... ? [![Back this issue](https://raw.githubusercontent.com/devlooped/SponsorLink/main/docs/assets/img/separator.png "Back this issue")](https://www.devlooped.com/SponsorLink/github/issues/?s=devlooped) [![Back this issue](https://img.shields.io/badge/backed-%240-EA4AAA?logo=githubsponsors "Back this...

bug

We are creating .NET 8 applications and wondered when/if Moq will support .NET 8.

Bumps [rexml](https://github.com/ruby/rexml) 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...

dependencies
ruby

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...

stale

## 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()));...

stale

## 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...

documentation

## 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)...

enhancement
stale