You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[@CharliePoole] Just a comment - somebody wanted to use methods that are not in CF - note that "original" in this context doesn't mean original NUnit code, just that person's original idea of how to code. No change except maybe the useless comment.
[@CharliePoole] This would be a reasonable change if we know all platforms support TryParse. No sense changing when we aren't working in the file though.
[@CharliePoole] Comment is obsolete but the test remains valid in case we do get deeper stack traces. This stack trace behavior seems to change with different releases of the framework.
Most of these are rather unimportant because we already removed the conditional code for CF. Some of them are just one programmer commenting that he would have done it differently without CF.
I'll go through the list and edit in comments for each, then we can see what it adds up to.
See above comments. I only see two items that need direct fixing...
The conditional code in CommandLineOptions = PR only
The erroneous help message in TextUI = New Issue
When we fix a minor error like the first, we will do a PR without an issue associated. It's just cleanup and doesn't get reflected in any release notes.
All the other items are worth fixing when working in that code, but I wouldn't do a separate programming / review effort. Where the comments suggest a stylistic change to the code rather than a real improvement, I'd just ignore them. The next person working may change the style back.
Browsing through the code, I noticed some references to compromises made in order to support CF, or documentation of CF quirks:
/src/NUnitFramework/framework/Constraints/NUnitEqualityComparer.cs#L260/src/NUnitFramework/framework/Interfaces/ITestResult.cs#L95
/src/NUnitFramework/framework/Internal/Reflect.cs#L162/src/NUnitFramework/framework/Internal/StackFilter.cs#L96/src/NUnitFramework/framework/Internal/TestNameGenerator.cs#L165/src/NUnitFramework/tests/Internal/StackFilterTests.cs#L52/src/NUnitFramework/nunitlite/CommandLineOptions.cs#L128
/src/NUnitFramework/nunitlite/CommandLineOptions.cs#L324/src/NUnitFramework/nunitlite/DebugWriter.cs#L31
/src/NUnitFramework/nunitlite/TextUI.cs#L138
If I understand correctly, this repo will never support CF again. In that case some cleanup might be desirable. Willing to help with this.
The text was updated successfully, but these errors were encountered: