示例#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"));