Rename GH1866 test, fix invalid char test, fix equality assertion order #3509
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problems
The
ZipValid_ContainsFilenameWithBadChars_NoException
test is failing on Windows:The above error message has swapped the expected and actual values of the string
The
GH1866
test does not have a meaningful name. Every time I see it, I wonder what it does. It's hard to maintain it correctly when we are guessing about its purpose.Causes
ZipValid
's error format has changed over time, and the test has an old valueAssert.AreEqual
in the wrong order, with the actual value first and the expected value secondChanges
Assert.AreEqual
calls are expected first, actual secondGH1866
test is moved toTests.GUI.ModList.InstallAndSortByCompat_WithAnyCompat_NoCrash
, based on descriptions in Consistent crash when installing up updating any mod #1803, CKAN Error in Regards to Sorting #1875, Fix issue where CKAN would crash after installing mods if you are sorting by KSP version. #1866, and Fix GUI exceptions when installing/uninstalling after sorting by KSP max version #1882I might self-review this, since it's just tests and shouldn't affect users.