Skip to content

Assert.Equal on nullable IEnumerable #2584

Answered by treziac
treziac asked this question in Question
Discussion options

You must be logged in to vote

Actually, the question is perhaps more global on nullable

In my production code, I prefer to never have the bang operator (!) as it opens to potential bug.
In test, do you perform NotNull check or simply use bang operator everywhere? (as anyway, at worse we will end up comparing something to null or generate an exception which will make the test fail)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bradwilson
Comment options

Answer selected by bradwilson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants