Exemple #1
0
        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");
        }
Exemple #2
0
		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");
		}