Пример #1
0
        public void TemplateStructure_SlotOverride_UseDefault()
        {
            MockApplication app = MockApplication.Setup <TemplateStructure_SlotOverrideDefault_Main>();

            Assert.IsInstanceOf <TemplateStructure_SlotOverrideDefault_Expand>(app.RootElement[0]);
            Assert.IsInstanceOf <UITextElement>(app.RootElement[0][0][0]);
            UITextElement textElement = (UITextElement)app.RootElement[0][0][0];

            Assert.AreEqual("Override failed", textElement.GetText().Trim());
        }
Пример #2
0
        public void TemplateStructure_SlotOverride_Extern_ExternDefault()
        {
            MockApplication app = MockApplication.Setup <TemplateStructure_SlotOverride_Extern_ExternDefault_Main>();

            Assert.IsInstanceOf <TemplateStructure_SlotOverride_Extern_ExternDefault_Exposer>(app.RootElement[0]);
            Assert.IsInstanceOf <TemplateStructure_SlotOverride_Extern_ExternDefault_Definer>(app.RootElement[0][0]);
            Assert.IsInstanceOf <UISlotOverride>(app.RootElement[0][0][0]);
            Assert.IsInstanceOf <UITextElement>(app.RootElement[0][0][0][0]);
            UITextElement textElement = (UITextElement)app.RootElement[0][0][0][0];

            Assert.AreEqual("Override from exposer layer", textElement.GetText().Trim());
        }