-
Notifications
You must be signed in to change notification settings - Fork 722
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
Allow Generic test methods in the compact framework #327
Comments
Why did you remove the SimpleGenericMethod tests? There were necessary changes to MsgUtils that were not included. Everything else looks ok. |
SimpleGenericMethod was an exact copy of GenericTestMethod tests. I'll have to take a look at MsgUtils.
|
Shows how much I actually looked at each test :( From: CharliePoole [mailto:notifications@github.com] SimpleGenericMethod was an exact copy of GenericTestMethod tests. I'll have to take a look at MsgUtils.
— |
MsgUtils had no impact on running generic tests, so I left it out of this PR. It is in the next one, where I do miscellaneous cleanup. I almost left it out because I couldn't find anyplace the display of generic methods was called for in the framework, but I figured you must have some reason, so it's in. |
Not an exact copy. SimpleGenericMethod has:
While GenericTestMethodTests has:
Is Category not supported/desired any longer? From: CharliePoole [mailto:notifications@github.com] SimpleGenericMethod was an exact copy of GenericTestMethod tests. I'll have to take a look at MsgUtils.
— |
I put that change into MsgUtil because I was getting an exception (ToString() not allowed on an open generic method) on the "return string.Format (Fmt_Defualt, val)". Obviously, that can only occur in the CF build. I cannot remember exactly what tests caused it. |
The duplication arose because I copied in a bunch of tests from both NUnit
|
I see. Well it's in one of the pending merges.
|
Add generic support to CF build; fixes #327
So which is the preferred one to use? Is Category desirable? From: CharliePoole [mailto:notifications@github.com] The duplication arose because I copied in a bunch of tests from both NUnit
— |
Since it doesn't affect the tests, it was a coin toss. I used the class whose name I liked better. |
It does affect the tests if one wants to select tests by category. From: CharliePoole [mailto:notifications@github.com] Since it doesn't affect the tests, it was a coin toss. I used the class whose name I liked better. — |
As I said, it was a one-time adhoc thing for manual testing in the Gui. Not On Thu, Nov 20, 2014 at 2:48 PM, oznetmaster notifications@github.com
|
I use categories in my testing all the time (my GUI supports them). I thought everyone did. From: CharliePoole [mailto:notifications@github.com] As I said, it was a one-time adhoc thing for manual testing in the Gui. Not On Thu, Nov 20, 2014 at 2:48 PM, oznetmaster <notifications@github.com mailto:notifications@github.com >
— |
Generic methods were not implemented in the compact framework build due to some differences in how they are implemented in CF. Essentially, it's not possible to work with open generic types in CF the way it is in the desktop versions of .NET. Consequently, a lot of what we do has to be done differently.
Neil has a build that includes generics, so I'll merge in his code with ours to get it to work.
The text was updated successfully, but these errors were encountered: