public void CallsBaseValidateMethod() { Page child; MockValidator mockValidator; child = new Page(); mockValidator = new MockValidator(); mockValidator.ValidationGroup = "theValidationGroup"; child.Validators.Add( mockValidator ); child.Validate(mockValidator.ValidationGroup); Assert.IsTrue(mockValidator.WasCalled); child = new Page(); mockValidator = new MockValidator(); child.Validators.Add( mockValidator ); child.Validate(); Assert.IsTrue(mockValidator.WasCalled); }
public void NoSharedStateAtConstruction() { Page page = new Page(); Assert.IsNull(page.SharedState); }
public LinkThem(Spring.Data.NHibernate.HibernateTemplate ht, Spring.Web.UI.Page page, Common.Logging.ILog log) { this.ht = ht; this.page = page; this.log = log; }