I am beginner of unit testing so I want to ask what kind of function/method we can use as unit testing object.
I want unit test sharepoint code which written on C#.
By the way, I don't ask about unit testing framework. I want to know that what kind of function I can use as unit test object.
Ex:
// function that return a value.
string getTitle()
{
// TODO: code logic here
return "A Title";
}
Or
// function that no return a value
void doAction()
{
// TODO: code logic here
}
=> which one of them can use as unit testing object.