public void IntegerLessThan_Message_AreEqual() { const string column = "Column"; const string comparisonColumn = "Comparison Column"; const string message = "測試{0}必須小於{1}"; IFormValidator validator = provider.IntegerLessThan(comparisonColumn, "1", false, message)(column, "1"); validator.Validate(); Assert.AreEqual(validator.ErrorMessage, string.Format(message, column, comparisonColumn)); }