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
Can't scrub Moq snapshots. Happy to fix it but at present I have no clue why its not scrubbing.
Reproduced
// NotEqual: // - Received: Tests.CanScrubReplace.received.txt // Verified: Tests.CanScrubReplace.verified.txt // // FileContent: // // NotEqual: // // Received: Tests.CanScrubReplace.received.txt // Verified: Tests.CanScrubReplace.verified.txt // Compare Result: // [ // { // Method: ITarget.Method(int a, int b), // Arguments: [ // 1, // - INT // + 2 // ], // ReturnValue: response // } // ] [Fact] public Task CanScrubReplace() { var mock = new Mock<ITarget>(); mock.Setup(_ => _.Method(It.IsAny<int>(), It.IsAny<int>())) .Returns("response"); var target = mock.Object; target.Method(1, 2); return Verify(mock).ScrubLinesWithReplace( x => x.Replace("2", "INT") ); } // Works as expected [Fact] public Task CanScrubReplaceString() { var mock = """ [ { Method: ITarget.Method(int a, int b), Arguments: [ 1, 2 ], ReturnValue: response } ] """; return Verify(mock).ScrubLinesWithReplace( x => x.Replace("2", "INT") ); }
Repro Branch
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Can't scrub Moq snapshots. Happy to fix it but at present I have no clue why its not scrubbing.
Repro
Reproduced
PR
Repro Branch
The text was updated successfully, but these errors were encountered: