Stefan Petrini make a final test,DeleteRound ( with subcases for Moderator and for non-Moderator deleting a table)
bool DeleteNotModeratorSuccess = true;
try
{
td.Table.DeleteRound(td.Table.Id + "NotModerator".GetHashCode(),"Round2");//Attempting to delete a round without being a Moderator
}
catch (PPSecurityExceptionModerator)
{
DeleteNotModeratorSuccess = false;
}
Assert.IsFalse(DeleteNotModeratorSuccess);
For now the application has 20 tests – all without data persistance ( all is in memory)
It is time to add a saving to database in order to persist data.
Leave a Reply