Exclude System.Diagnostics.Contracts When Using PartCover
        Posted  
        
            by Alex Jeffery
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Alex Jeffery
        
        
        
        Published on 2009-09-18T04:45:15Z
        Indexed on 
            2010/04/27
            9:33 UTC
        
        
        Read the original article
        Hit count: 475
        
partcover
|code-contracts
I am trying out the .net Code Contracts fro .net 3.5 I have some unit test that I am running PartCover over to calculate the code coverage.
PartCover keeps including the System.Diagnostics.Contracts in my report. Here are the rules I am using to include MyProject and exclude everything else.
  <Rule>+[MyProject.DomainModel]*</Rule>
  <Rule>-[System]*</Rule>
  <Rule>-[System.Diagnostics]*</Rule>
  <Rule>-[System.Diagnostics.Contracts]*</Rule>
Any suggestions?
© Stack Overflow or respective owner