A unit test with the void return type and some ExpectedResult in the TestCase attribute may be a sign of one of the following problems:
ExpectedResult is there by mistake, in which case you should remove it.
The test was originally designed to return a result, in which case you need to rewrite the test method.
Expected result and its value is written instead of a data value for the test method parameter (for example [TestCase(ExpectedResult = 100)]). In this case, you need to remove the ExpectedResult argument name and only leave the value [TestCase(100)]
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.