I am using Pex ( http://www.codeplex.com/Pex ) to automatically generate test cases for all code paths based on static/dynamic evaluation. Pex generates partial classes, in multiple files. However, RS does not appear to be able to do code cleanup on the files with generated test cases (but it does do cleanup on the generated parameterized unit test files). These files are all in the same directory/project.
Even if I open the generated test case files, the "Code Cleanup" option is disabled (yet other ReSharper options are available). This is with VS2008 and RS EAP 807.
Why would RS exclude some partial class files in the same project? Here is a snippet of the start of a file that is skipped by RS cleanup (Note that RS does flag errors in the file, including global analysis):
public partial class CachedStringTest
[System.Diagnostics.CodeAnalysis.SuppressMessage ( "Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores" ), System.Diagnostics.CodeAnalysis.SuppressMessage ( "Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "op" ), TestMethod]
public void op_GreaterThanCachedStringObject_20080522_220038_000 ( )
PexValue.Generated.Clear ( );
this.op_GreaterThan ( ( CachedString ) null, ( object ) null );
PexValue.Generated.Validate ( "result", "False" );
Edited by: Brian Strelioff on May 25, 2008 5:26 PM