Unit Test - Private Accessor also generated for public method?
I have created a simple C# console application (using VSTS RC) and added a simple class containing a public method. Then a C# test project was automatically genreated. In the generated code I noticed that the test method still create a PrivateAccessor to test the public method.
What's the reason for this behivior?
///Production Codeclass Arithmetic{public int Add(int i1, int i2)
{
return i1+i2;
}} ///generated TestMethod public void AddTest()
{ object target = TestProject1.ConsoleApplication1_CAddAccessor.CreatePrivate(); .... }

