public void Test_IsPropValueValid_ShouldBeTrue_WhenValueIsEqualToMax()
        {
            //---------------Set up test pack-------------------
            PropRuleLong rule = new PropRuleLong("num", "TestMessage", 10, 200);
            string errorMessage = "";
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            bool valid = rule.IsPropValueValid("Propname", 200, ref errorMessage);
            //---------------Test Result -----------------------
            Assert.IsTrue(valid);
            Assert.IsFalse(errorMessage.Length > 0);
        }
        public void Test_PropRuledateMax_ViaInterface()
        {
            //---------------Set up test pack-------------------

            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            const Int64 minValue = Int64.MinValue;
            const Int64 maxValue = Int64.MaxValue;
            IPropRuleComparable<System.Int64> rule =
                new PropRuleLong("fdsafasd", "Test", minValue, maxValue);
            //---------------Test Result -----------------------
            Assert.AreEqual(minValue, rule.MinValue);
            Assert.AreEqual(maxValue, rule.MaxValue);
        }
        public void IsPropValueValid_ShouldPassForNumberGreaterThanMaxInt()
        {
            //---------------Set up test pack-------------------
            var rule = new PropRuleLong("num", "TestMessage", 0, long.MaxValue);
            var errorMessage = "";
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            long value = int.MaxValue;
            value += 1;
            var valid = rule.IsPropValueValid("Propname", value, ref errorMessage);
            //---------------Test Result -----------------------
            Assert.IsTrue(valid);
            Assert.IsTrue(errorMessage.Length == 0);
        }