Additional String.Join tests#2839
Conversation
|
Hi @bbowyersmyth, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! TTYL, DNFBOT; |
There was a problem hiding this comment.
Instead of Assert.True you can use Assert.Equal here and below. It prints a much better message when the test case fails.
There was a problem hiding this comment.
Sure thing. Updated this file to be consistent.
There was a problem hiding this comment.
Thanks for changing all of these to be Equal instead of True. However, the first argument to Equal is meant to be the expected value, the second the actual value, so most (all?) of these need to have their arguments swapped. Otherwise, if the assert fails, the error message that gets output ends up being confusing. Could you swap them where appropriate as well?
There was a problem hiding this comment.
Swapped the arguments + updated some of the existing ones that were in the wrong order.
|
Thanks for the updates, @bbowyersmyth. I know you've submitted changes to the corefx repo in the past, but the bot is saying that you still need to sign the CLA. Maybe your previous changes were small enough that this wasn't needed? Or maybe you've changed your account in the interim or something? |
|
@stephentoub The CLA was signed on the 1st of Jan (probably your 31st Dec). I can forward you the confirmation email if that helps match things up? |
|
@joshfree, can you help sort out why the CLA bot is marking @bbowyersmyth's PRs with "CLA required"? |
|
@stephentoub @joshfree It does say it is for project "ASP.NET MVC". Is another CLA required for corefx or is this for all MS Open Tech? |
|
@bbowyersmyth, ah, thanks, I believe that's a different CLA. You need to complete the one specifically mentioned in the comment from the bot earlier. Thanks! |
|
@stephentoub Ok will do |
|
@stephentoub @bbowyersmyth yup - everyone signs the specific CLA for dotnetfoundation; this will cover you for /dotnet/corefx, /dotnet/coreclr, /dotnet/wcf... /Microsoft/* may use different CLAs. |
|
@bbowyersmyth, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
|
Thanks, @bbowyersmyth. There's probably a more consolidated way to write some of these new tests (e.g. with theories), but the style you used matches what's already there, so it's fine to stick with for now. LGTM. |
|
Yeah I tried to match the style that was there. |
Additional String.Join tests
Additional String.Join tests Commit migrated from dotnet/corefx@3e11f82
Added more test cases for: