Example #1
0
 public static void NotWhiteSpace_DoesNotThrow_ForNonWhiteSpaceString()
 => Enforce.NotWhiteSpace("Whatever", "paramName");
Example #2
0
 public static void NotWhiteSpace_DoesNotThrow_ForNull()
 => Enforce.NotWhiteSpace(null, "paramName");
Example #3
0
 public static void NotWhiteSpace_DoesNotThrow_ForEmptyString()
 => Enforce.NotWhiteSpace(String.Empty, "paramName");
Example #4
0
 public static void NotWhiteSpace_ThrowsArgumentException_ForWhiteSpaceOnlyString()
 => Assert.Throws <ArgumentException>(() => Enforce.NotWhiteSpace(My.WhiteSpaceOnlyString, "paramName"));