public void ShouldReturnFalseForStringValue()
        {
            string testValue = "Some string";

            Assert.IsFalse(ValidateData.IsNegativeNumber(testValue));
        }
 /// <summary>
 /// The method validates whether a supplied object is a valid positive number.
 /// </summary>
 /// <param name="objectToValidate">An object to be valdiated.</param>
 /// <returns>True - if object is valid, false - if object is invalid.</returns>
 public override bool Validate(object objectToValidate)
 {
     return(ValidateData.IsNegativeNumber(objectToValidate, IsZeroIncluded));
 }
        public void ShouldReturnTrueForDecimalValueZeroIncluded()
        {
            decimal testValue = 0M;

            Assert.IsTrue(ValidateData.IsNegativeNumber(testValue, true));
        }
        public void ShouldReturnFalseForDecimalValue()
        {
            decimal testValue = 1M;

            Assert.IsFalse(ValidateData.IsNegativeNumber(testValue));
        }
        public void ShouldReturnTrueForDoubleValueZeroIncluded()
        {
            double testValue = 0F;

            Assert.IsTrue(ValidateData.IsNegativeNumber(testValue, true));
        }
        public void ShouldReturnFalseForDoubleValue()
        {
            double testValue = 1F;

            Assert.IsFalse(ValidateData.IsNegativeNumber(testValue));
        }
        public void ShouldReturnFalseForIntValue()
        {
            int testValue = 1;

            Assert.IsFalse(ValidateData.IsNegativeNumber(testValue));
        }
        public void ShouldReturnTrueForIntValueZeroIncluded()
        {
            int testValue = 0;

            Assert.IsTrue(ValidateData.IsNegativeNumber(testValue, true));
        }
 public void ShouldReturnFalseForValidatableValue()
 {
     Assert.IsFalse(ValidateData.IsNegativeNumber(falseObject));
 }
 public void ShouldReturnTrueForValidatableValue()
 {
     Assert.IsTrue(ValidateData.IsNegativeNumber(trueObject));
 }
        public void ShouldReturnFalseForObjectValue()
        {
            object testValue = new object();

            Assert.IsFalse(ValidateData.IsNegativeNumber(testValue));
        }