Expected, Actual message for shouldNotContain
See original GitHub issueI have been using the Collection.shouldNotContain method to verify that my Collection does NOT contain an item.
However I found the output on fail quite confusing:

It shows the item that I do not want to be in the Collection as Expected, and the Collection as actual.
In other words it looks as if it was actually expected that the item was in the Collection.
I will probably look into this soon.
Also let’s make some progress on common assertions like String.shouldNotBeNullOrBlank !
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Tips - Fluent Assertions
Expected True, but found False. Expected collection to contain only items matching (x.OtherProperty == value(UnitTests2.CollectionTests+<>c ...
Read more >Assertion - Go Packages
ShouldEqual receives exactly two parameters and does an equality check using the following semantics: 1. If the expected and actual values ...
Read more >should | Cypress Documentation
These string messages will be shown in the Command Log giving each assertion more context. Expect assertions with messages. Compare text values of...
Read more >Expect / Should - Chai Assertion Library
However, it's often best to assert that the target is strictly ( === ) or deeply equal to its expected value.
Read more >tests: Assertion arguments should be passed in the correct order
assertEquals(runner.exitCode(), 0, "Unexpected exit code"); // Noncompliant; Yields error message like: Expected:<-1>. Actual:<0>. org.assertj.core.api.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Alright.
The change will be shipped with 1.15
Well I do believe that the latter one looks better, but once the collection size gets larger than your screen, it will not immediately be obvious what the problem is.
So I guess version one!