Beispiel #1
0
        public void validatecondition_returns_false_when_passed_null_condition()
        {
            string invalidCondition = null;

            bool isValid = StampItem.ValidateCondition(invalidCondition);

            Assert.IsFalse(isValid, $"Expected ValidateCondition to return false an unexpected condition: {invalidCondition}");
        }
Beispiel #2
0
        public void validate_stamp_conditions_set_successfully()
        {
            foreach (string condition in StampItem.STAMP_CONDITIONS)
            {
                bool isValid = StampItem.ValidateCondition(condition);

                Assert.IsTrue(isValid);
            }
        }