I can’t find any info on whether it can do this.
I have a couple of protected methods inside the abstract class and want to test these.
I don’t want to inherit from the class and test its implementation (besides thats technically not strictly unit testing, also VS2008 won’t let you test inherited methods).
I would like to solve this problem within the context of the integrated unit tests … I am aware that nUnit for example will allow you to do this.
any thoughts? suggestions?
VS2008 can test private and protected methods inherited from base classes, even abstract ones.
If you are happy testing this way then right click on the code to be tested and create unit tests.
Here’s an example of a piece of code which I am using to test a private, inherited function, from an abstract class:
Out of that lot the important part is:
This allows me to access the private inherited function “GetScheduledTime”