This inspection notifies you about mismatch of the type of a value that you pass to your test via the ExpectedResult argument and the return type of the test method. For example:
[TestCase(ExpectedResult ="100")]// incorrect: type mismatch[TestCase(ExpectedResult =100)]// correctpublicintTest1(){return100;}
Note that NUnit will try to convert the value supplied via ExpectedResult before using it in the test, and ReSharper takes this conversion into consideration before issuing the warning. Note also that NUnit 2.x and NUnit 3 have different value conversion logic.
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions. Learn more.
With your consent, JetBrains may also use cookies and your IP address to collect individual statistics and provide you with personalized offers and ads subject to the Privacy Notice and the Terms of Use. JetBrains may use third-party services for this purpose. You can adjust or withdraw your consent at any time by visiting the Opt-Out page.