public void IPageViewSiteTest() { TestIPageViewSite pageViewSite = new TestIPageViewSite(); TestIPropertyPageUI testPageUI = new TestIPropertyPageUI(); PropertyControlTable propertyControlTable = new PropertyControlTable(); PropertyControlMap target = new PropertyControlMap(pageViewSite, testPageUI, propertyControlTable); PropertyPageBase_PropertyControlMapAccessor mapAccessor = new PropertyPageBase_PropertyControlMapAccessor(target); Assert.AreEqual(pageViewSite, mapAccessor.m_pageViewSite); }
public void PropertyControlTableTest() { TestIPageViewSite pageViewSite = new TestIPageViewSite(); TestIPropertyPageUI testPageUI = new TestIPropertyPageUI(); PropertyControlTable propertyControlTable = new PropertyControlTable(); string expectedPropertyName = "Property"; string expectedControlName = "Control"; propertyControlTable.Add(expectedPropertyName, expectedControlName); PropertyControlMap target = new PropertyControlMap(pageViewSite, testPageUI, propertyControlTable); PropertyPageBase_PropertyControlMapAccessor mapAccessor = new PropertyPageBase_PropertyControlMapAccessor(target); Assert.AreEqual(expectedControlName, mapAccessor.m_propertyControlTable.GetControlNameFromPropertyName(expectedPropertyName)); }
public void PropertyControlTableTest() { TestIPageViewSite testPageViewSite = new TestIPageViewSite(); TestPageView pageView = new TestPageView(testPageViewSite); PropertyPageBase_PageViewAccessor pageViewAccessor = new PropertyPageBase_PageViewAccessor(pageView); PropertyPageBase_PropertyControlMapAccessor mapAccessor = new PropertyPageBase_PropertyControlMapAccessor(pageViewAccessor.m_propertyControlMap); Assert.AreEqual(pageView.Table, mapAccessor.m_propertyControlTable); }