We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using AutoMoq integration and matching by ParameterName, the match breaks.
`
public interface ITestOp { } public class TestOp { private readonly ITestOp _instanceOne; private readonly ITestOp _instanceTwo; public TestOp(ITestOp instanceOne, ITestOp instanceTwo) { _instanceOne = instanceOne; _instanceTwo = instanceTwo; } public ITestOp InstanceOne => _instanceOne; public ITestOp InstanceTwo => _instanceTwo; } [Theory, Gen] public void WorksWithoutMoqs( [Frozen(Matching.ParameterName)] ITestOp instanceOne, [Frozen(Matching.ParameterName)] ITestOp instanceTwo, TestOp sut) { Assert.Equal(instanceOne, sut.InstanceOne); Assert.Equal(instanceTwo, sut.InstanceTwo); } [Theory, Gen] public void FailsWithMoqs( [Frozen(Matching.ParameterName)] Mock<ITestOp> instanceOne, [Frozen(Matching.ParameterName)] Mock<ITestOp> instanceTwo, TestOp sut) { Assert.Equal(instanceOne.Object, sut.InstanceOne); Assert.Equal(instanceTwo.Object, sut.InstanceTwo); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using AutoMoq integration and matching by ParameterName, the match breaks.
`
`
The text was updated successfully, but these errors were encountered: