public void ThrowsExceptionWhenNotString()
        {
            var validator = new NotNullNotWhiteSpaceValidator();

            try
            {
                int i = 10;
                Assert.That(validator.IsValid(i, null), Is.False);
                Assert.Fail();
            }
            catch (SharpArch.Core.PreconditionException)
            {
            }
            catch
            {
                Assert.Fail();
            }
        }
        public void ReturnsTrueWhenPartialWhiteSpace()
        {
            var validator = new NotNullNotWhiteSpaceValidator();

            Assert.That(validator.IsValid(" this is ok ", null), Is.True);
        }
        public void ReturnsFalseWhenWhiteSpace()
        {
            var validator = new NotNullNotWhiteSpaceValidator();

            Assert.That(validator.IsValid(" ", null), Is.False);
        }
        public void ReturnsTrueWhenNoWhiteSpace()
        {
            var validator = new NotNullNotWhiteSpaceValidator();

            Assert.That(validator.IsValid("abc", null), Is.True);
        }
        public void ReturnsFalseWhenTabbedWhiteSpace()
        {
            var validator = new NotNullNotWhiteSpaceValidator();

            Assert.That(validator.IsValid(Convert.ToChar(9).ToString(), null), Is.False);
        }