Beispiel #1
0
        public void Validate_ReturnValue_IsFalse(bool value)
        {
            FalseAssertValidator validator = new FalseAssertValidator(value, "");
            bool actual = validator.Validate() == value;

            Assert.IsFalse(actual);
        }
Beispiel #2
0
        public void ErrorMessage_Value_AreEqual()
        {
            string expected = "測試FalseAssert";

            FalseAssertValidator validator = new FalseAssertValidator(true, expected);

            validator.Validate();

            Assert.AreEqual(validator.ErrorMessage, expected);
        }