After doing a build of a legacy C# application within Visual Studio 2015, the following warning exists:
This task to create private accessor is deprecated and will be removed
in a future version of visual studio.
Previous versions of Visual Studio, you could use Publicize.exe to
specify an internal application programming interfaces (API) and
create public counterpart API that you can call in your tests, which
would in turn, call into the internal APIs of your product. You could
then use code generation to create test stubs and generate code
snippet inside that stub.
You should find the accessor in the .csproj file of your unit test project.
In Visual studio right click on your test-project and select "Unload project". Then right-click the project again and select "Edit project-name.csproj"
The accessor looks something like:
<ItemGroup> <Shadow Include="Test References\some-name.accessor" /> </ItemGroup>