All pastes #18087 Raw Edit

Something

public text v1 · immutable
#18087 ·published 2005-07-19 21:32 UTC
rendered paste body
		[Test]
		public void Render () {
			RangeValidatorTestClass p;
			TextBox			t;

			p = new RangeValidatorTestClass();
			StartValidationTest(p);
			p.Type = ValidationDataType.Integer;

			t = SetValidationTextBox("textbox", "3");
			p.MinimumValue = "1";
			p.MaximumValue = "2";
			p.Validate();
			p.ErrorMessage = "aw shucks";
			p.Display = ValidatorDisplay.Static;
			p.Enabled = true;
			p.EnableViewState = true;
			Assert.AreEqual("<span style=\"color:Red;\">aw shucks</span>", p.Render(), "R1");
		}