-
Notifications
You must be signed in to change notification settings - Fork 20
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
Consider Making Expectations
to be Disposable
#224
Comments
I would consider doing this if I go down this road. |
Definitely considering doing this now. |
Expectations<T>
to be DisposableExpectations
to be Disposable
Since |
Note: I would put XML docs on |
One idea is that |
I just make
RockRepository
implementIDisposable
"better", in that onceDispose()
is called, you can't call members on it again without gettingObjectDisposedException
.I'm starting to wonder if
Expectations<T>
should do the same thing. In other words, makeDispose()
do whatVerify()
does, enforce dispose semantics, and then removeVerify()
.This would be a pretty big change, because I'm removing a member that used all over the place. But....it feels like this might be a better design. Definitely need to think this one through.
The text was updated successfully, but these errors were encountered: