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

Improve evaluation behavior #5

Closed
kentcb opened this issue Jan 13, 2015 · 0 comments
Closed

Improve evaluation behavior #5

kentcb opened this issue Jan 13, 2015 · 0 comments
Assignees
Milestone

Comments

@kentcb
Copy link
Owner

kentcb commented Jan 13, 2015

Improve the evaluation behavior significantly. In addition to what is currently possible, the following should be possible:

// calling a method (FromSeconds) to obtain the value
mock.Verify(x => x.SomeMethod(TimeSpan.FromSeconds(1)))
    .WasCalledExactlyOnce();

// performing calculations
mock.Verify(x => x.SomeMethod((37 * 2) / 12))
    .WasCalledExactlyOnce();

Of course, the same should be true in the context of a When() call.

@kentcb kentcb self-assigned this Jan 13, 2015
@kentcb kentcb added this to the v0.0.5 milestone Jan 13, 2015
@kentcb kentcb closed this as completed in b2e84ad Jan 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant