I am trying to run a unit test on a method in an abstract class. I have condensed the code below:
Abstract Class:
public abstract class TestAb
{
The message is because your Test method is not public. Test methods need to be public. Even after making the test method public it will fail as you can only verify abstract/virtual methods. So in your case you will have to make the method virtual since you have implementation.
If you want to mock methods on an abstract class like this, then you need to make it either virtual, or abstract.