.NET generics with private accessors not compatible with MSTest

Was playing around with generics and suddenly my unit test project failed with this error: “Signature of the body and declaration in a method implementation do not match.” After some research I found a post here


that explained my problem was using a private on a generic class, and was a known bug that will not be fixed in VS 2010 as explained here


Changed the private to public and was able to carry on.

Comments

  1. This comment has been removed by a blog administrator.

    ReplyDelete

Post a Comment

Popular posts from this blog

ToMethodObject Refactoring

How to unlock a file in Team Foundation Server(TFS)

Microsoft.ApplicationBlocks. ExceptionManagement The event source x does not exist error