You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varjapanese=newJapanese(IsRoyal:false,FirstName:"Hayao",LastName:"Miyazaki");Assert.That(japanese.IsRoyal?japanese.LastNameisnull:japanese.LastNameis not null);
The new diagnostic can convert this to
if(japanese.IsRoyal){Assert.That(japanese.LastNameisnull);}else{Assert.That(japanese.LastNameis not null);}
Once #746 is complete, NUnit2010 will again suggest
I've noticed the following diagnotics:
We can take a step further and add a new diagnostic: "Split up ternaries for better assertion messages in case of failure"
Consider the following setup (context):
Now, suppose there's an assertion like this:
The new diagnostic can convert this to
Once #746 is complete, NUnit2010 will again suggest
which will eventually give you a good error message.
The text was updated successfully, but these errors were encountered: