Be careful in using the C# null conditional operators in tests - Productive C#

added by DotNetKicks
1/15/2018 1:53:44 PM

3 Kicks, 197 Views

Few days ago, I come across to a bunch of tests that were using the null conditional operator in the wrong way and I think it is worth sharing it.Have a look at this code and how I fixed it.What's the problem with the original code?When result is null, the test pass even if clearly ...


0 comments