I have a simple method that throws and exception, i want to test any scenario of it.
The case when the Exception is thrown is simple, I assert it was thrown,
But how can I assert the second case when it is not thrown?
An example of my method?
public void Validate(string userName, string password)
{
if (null == userName || null == password)
{
throw new ArgumentNullException();
}
}