public void ErrorMessage() { var attr = new RangeAttributePoker(-10.123D, 10.123D); Assert.IsNull(attr.ErrorMessage, "#A1-1"); Assert.AreEqual("The field {0} must be between {1} and {2}.", attr.GetErrorMessageString(), "#A1-2"); }
public void ErrorMessage () { var attr = new RangeAttributePoker (-10.123D, 10.123D); Assert.IsNull (attr.ErrorMessage, "#A1-1"); Assert.AreEqual ("The field {0} must be between {1} and {2}.", attr.GetErrorMessageString (), "#A1-2"); }