public void ArgumentExceptionMessageWhenNoParamNameIsGiven()
 {
     ArgumentException exception = new ArgumentException("Only this messasge");
     Assert.AreEqual("Only this messasge", exception.GetMessageWithoutParamName());
 }
 public void ArgumentExceptionMessageWhenParamNameIsGiven()
 {
     ArgumentException exception = new ArgumentException("This is the message", "ParameterName");
     Assert.AreEqual("This is the message\r\nNombre del parámetro: ParameterName", exception.Message);
     Assert.AreEqual("This is the message", exception.GetMessageWithoutParamName());
 }
 public void ArgumentExceptionMessageWhenEmpty()
 {
     ArgumentException exception = new ArgumentException("");
     Assert.AreEqual("", exception.GetMessageWithoutParamName());
 }