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. Cannot resolve symbol in [TestCaseSource] argument

Last modified: 05 September 2023

NUnit's TestCaseSource and ValueSource attributes are used to identify the source from which the argument(s) will be provided for a parameterized test. If the class, field, property, or method specified as the test source is not found in the current context, ReSharper issues a warning.

Note that NUnit allows different ways of specifying test case sources. For more information, refer to the TestCaseSourceAttribute and ValueSourceAttribute documentation.