Пример #1
0
        public void LoadDefinitionFromV3WebpartFile()
        {
            var webpartXml = ResourceReaderUtils.ReadFromResourceName(GetType().Assembly, RegWebparts.V3.TeamTasks);

            var def = WebpartXmlExtensions.LoadDefinitionFromWebpartFile <XsltListViewWebPartDefinition>(webpartXml);

            Assert.IsNotNull(def);
        }
Пример #2
0
        public void LoadDefinitionFromV2WebpartFile()
        {
            var webpartXml = ResourceReaderUtils.ReadFromResourceName(GetType().Assembly, RegWebparts.V2.NewsFeed);

            var def = WebpartXmlExtensions.LoadDefinitionFromWebpartFile <SiteFeedWebPartDefinition>(webpartXml);

            Assert.IsNotNull(def);
        }