public void ShouldFailLowerCaseAssertionOnUpperCaseCharAndPassOnLowerCaseChar() { var c = Any.AlphaChar(); Assert.Throws <AssertionException>(() => XAssert.IsLowerCase(char.ToUpper(c))); Assert.DoesNotThrow(() => XAssert.IsLowerCase(char.ToLower(c))); }
public void ShouldFailLowerCaseAssertionOnUpperCaseStringAndPassOnLowerCaseString() { var s = Any.String(); Assert.Throws <AssertionException>(() => XAssert.IsLowerCase(s.ToUpper())); Assert.DoesNotThrow(() => XAssert.IsLowerCase(s.ToLower())); }