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