I am new to unit testing and i don't know how to test a private method?
Is there is any way to test a private method ?
I am using MSTest framework.
Private Method Code:
private int IncreasePoints(int userPoints)
{
if (userPoints > 0 && userPoints < 50)
userPoints += 0;
else if (userPoints >= 50 && userPoints < 100)
userPoints += 10;
else if (userPoints == 100)
userPoints += 15;
else if (userPoints > 100)
userPoints += 25;
else
userPoints += 0;
return userPoints;
}