Im new at TDD and i still have many questions, and one of this questions is how to test a void method!
I have this one with params passed by refference, and i have no clue how to test: (this is just a test, not my real method)
public void ReplaceCenter(ref string cod, ref string name)
{
User user = userDAO.GetSomething();
if (user.Cod != null)
{
cod = user.Cod;
}
if (user.Name != null)
{
name = user.Name;
}
}
Can someoen help? Thanks!