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
This code should fail, but it doesn't:
class B { void foo(string[] = null) { } } unittest { auto mocker = new Mocker; auto klass = mocker.mock!B; mocker.expect(klass.foo).action({ assert(false); }); mocker.replay; klass.foo; mocker.verify; }
The text was updated successfully, but these errors were encountered:
mocker.expect(klass.foo).action((string[] = null) { assert(false); });
works as expected.
mocker.expect(klass.foo).action(delegate void(string[] = null) { assert(false); });
Sorry, something went wrong.
mocker.expect(klass.foo(null)).action((string[]) => { assert(false); });
doesn't fail.
Event if the passed callback has wrong signature, caller should be notified (with an exception according to the function documentation).
belka-ew
No branches or pull requests
This code should fail, but it doesn't:
The text was updated successfully, but these errors were encountered: