Skip to content
New issue

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

It.passes #106

Open
cdibbs opened this issue Jul 28, 2018 · 0 comments
Open

It.passes #106

cdibbs opened this issue Jul 28, 2018 · 0 comments

Comments

@cdibbs
Copy link

cdibbs commented Jul 28, 2018

For better interop, could TypeMoq add an It.passes, or something, to be used with external assertion libraries?

As it stands, I have to write something like:

this.i18nMock.verify(i => i(
        'some thing',
        It.is(b => {
            Assert(b).deeplyEquals(expectedBag);
            return true;
        })),
    Times.once());

Or, depending on the library, I have to typecast the assertion's non-falsy return value to any. Not a huge deal, but it potentially leaves the developer feeling like they have hacky tests.

Thanks for considering this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant