public void testNonEmpty()
 {
     try
     {
         SanityCheck.nonEmpty("     ", "empty-string");
         Assert.Fail("empty value has not been detected");
     }
     catch (ArgumentException ae)
     {
         Assert.AreEqual("'empty-string' can't be empty or null", ae.Message);
     }
 }
 public void testNonEmptyWithCustomMessage()
 {
     try
     {
         SanityCheck.nonEmpty("     ",
                              "Parameter '{0}' must be valorised and only spaces are not accepted",
                              "testParam");
         Assert.Fail("empty value has not been detected");
     }
     catch (ArgumentException ae)
     {
         Assert.AreEqual(
             "Parameter 'testParam' must be valorised and only spaces are not accepted",
             ae.Message);
     }
 }
 public void testNonEmptyNoTrim()
 {
     SanityCheck.nonEmpty("     ", "empty-string", false);
 }