-
Notifications
You must be signed in to change notification settings - Fork 762
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
Why does the 3.0 test library depend on XUnit.Assert? #210
Comments
This was done during the port to .NET Core as there was no .NET Core support for MSTest at the time. The 2.2.5 version did have a dependency on MSTest's assertions. The assertions are an implementation detail of |
Thanks for the answer! I didn't realize that there was a dependency on MSTest. I'd agree that, if possible, the Rx library should be test library-agnostic. I think that |
Using a source-version of the assertions should address this though to remove the external dependency, right? |
Point taken about conditional compilation, and actually Embedding parts of the source is of course fine too, and it would prevent having to build custom assertion methods, but I was just thinking that the Rx test framework probably doesn't need any dependencies on semantic assertion methods in the first place. It defines its own semantic assertions, via Anyway, that's perhaps a limitation in the FCL. It would be great to have a general-purpose |
Maybe it's overkill, but I could imagine another platform-enlightenment package that injects the core of |
Cool...yeah, I think a platform enlightenment is a bit overkill here, especially as we're aiming to consolidate the packages into fewer ones that are cross-compiled (no loss of features, just fewer packages) in #199. In the end, it doesn't really matter what type of exception is thrown as all test frameworks will fail a test that has an unhandled exception. |
Another good point. Maybe a |
Waiting on this to be merged in and we'll be good to go: |
I'm using MS Test in my projects and I'd rather not have any dependencies on XUnit. Is there any chance that you'll drop this dependency? Why include it in the first place given that the 2.2.5 release worked just fine without it?
The text was updated successfully, but these errors were encountered: