I was under the impression that once I have the entry below in my assemblyinfo.cs file
[assembly: InternalsVisibleTo("MyAssembliesName")]
, then pex should be able to see all internal methods in my class definition, in addition to the public methods. So, when does Pex not creat unit tests for the internal methods in my class?
The
InternalsVisibleTospecifies which assembly you're granting access to, not the assembly that is granting the access (which is what you appear to be describing).So, if you had a production project and a test project, the production project would have the attribute, granting access to the test project.
I haven't used pex with VS2015, but on the face of it, based on this and this, having the
InternalsVisibleTopoint at your test project should be enough.