ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Code Inspection: NUnit. Missing expected result

Last modified: 08 March 2021

This inspection draws your attention to the fact that the expected result is missing in the Test or TestCase attribute for a test method with a return value. ReSharper also suggests a quick-fix that adds the ExpectedResult argument with the default value of the compatible type, which you can then replace with a desired value.