-
Notifications
You must be signed in to change notification settings - Fork 393
Fix obsolete warnings in generated test code #337
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
Comments
I don't mind taking a look at this @angularsen, I've used your library quite a lot in the past and so happy to help. What precision would you want the doubles to be compared to? I assume I can then remove the Obsolete attribute if we're comparing to a given precision? |
Awesome @dutts , that would be appreciated. About precision, I think it depends a bit on what unit is being tested. However, we already dealt with this problem in tests by introducing per-unit tolerances in each quantity's test base class that can be overridden in the quantity test class when needed. The default is |
Ok I see what you're talking about. Those tolerances are currently in the TestBase classes in the Tests project. I think I'm going to run into some circular dependency issues if I try to reference the Test project from the main unless I'm missing something so should I move the tolerances into the main project to be used by both? |
Sorry, I was probably not clear. As an example, We have obsoleted the "default" equals method that does not specify a Hope this made things a bit more clear, if not please ask :) |
Is this the sort of thing you had in mind @angularsen? |
Yep, looks about right to me, as long as the tests actually do pass? |
Fixed by #341 |
Tons of warnings about using the obsoleted Equals() method or
==
and!=
operators in test code.This can and should be rewritten to the overload that takes a delta/error argument.
The text was updated successfully, but these errors were encountered: