public void AssertStringSizeTest()
        {
            TestObject obj = new TestObject();

            obj.AssertValid();

            obj.StrTwo = "";
            Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

            obj.StrTwo = "123456789.123456789.1";             // 21 chars
            Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

            obj.StrTwo = "123456789.123456789.";             // 20 chars
            obj.AssertValid();
        }
        public void AssertNullableIntegerBetweenTest()
        {
            TestObject obj = new TestObject();

            obj.AssertValid();

            obj.NintOne = 8;
            Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

            obj.NintOne = 5;
            obj.AssertValid();

            obj.NintTwo = -1;
            Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

            obj.NintTwo = 100;
            obj.AssertValid();
        }
		public void AssertDoubleBetweenTest()
		{
			TestObject obj = new TestObject();

			obj.AssertValid();

			obj.DblOne = 12.0;
			Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

			obj.DblOne = -5.0;
			obj.AssertValid();
		}
        public void AssertDoubleBetweenTest()
        {
            TestObject obj = new TestObject();

            obj.AssertValid();

            obj.DblOne = 12.0;
            Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

            obj.DblOne = -5.0;
            obj.AssertValid();
        }
        public void AssertRegexMatchTest()
        {
            TestObject obj = new TestObject();

            obj.AssertValid();

            obj.StrOne = "yesterday";
            Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

            obj.StrOne = "12/12/2012 12:12:12";
            obj.AssertValid();
        }
		public void AssertNotNullTest()
		{
			TestObject obj = new TestObject();

			obj.AssertValid();

			obj.NintTwo = null;
			Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

			obj.NintTwo = 1;
			obj.AssertValid();

			obj.StrTwo = null;
			Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

			obj.StrTwo = "Foo";
			obj.AssertValid();

			obj.StrTwo = "       ";
			Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

			obj.StrTwo = "Bar";
			obj.AssertValid();
		}
        public void AssertNotNullTest()
        {
            TestObject obj = new TestObject();

            obj.AssertValid();

            obj.NintTwo = null;
            Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

            obj.NintTwo = 1;
            obj.AssertValid();

            obj.StrTwo = null;
            Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

            obj.StrTwo = "Foo";
            obj.AssertValid();

            obj.StrTwo = "       ";
            Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

            obj.StrTwo = "Bar";
            obj.AssertValid();
        }
		public void AssertIntegerBetweenTest()
		{
			TestObject obj = new TestObject();

			obj.AssertValid();

			obj.IntOne = 8;
			Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

			obj.IntOne = 5;
			obj.AssertValid();

			obj.IntTwo = -1;
			Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

			obj.IntTwo = 100;
			obj.AssertValid();
		}
		public void AssertRegexMatchTest()
		{
			TestObject obj = new TestObject();

			obj.AssertValid();

			obj.StrOne = "yesterday";
			Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

			obj.StrOne = "12/12/2012 12:12:12";
			obj.AssertValid();
		}
		public void AssertStringSizeTest()
		{
			TestObject obj = new TestObject();

			obj.AssertValid();

			obj.StrTwo = "";
			Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

			obj.StrTwo = "123456789.123456789.1"; // 21 chars
			Assert.IsFalse(obj.IsValid(), "Validation failed to reject value");

			obj.StrTwo = "123456789.123456789."; // 20 chars
			obj.AssertValid();
		}