コード例 #1
0
        public void Create_WithNavMapButWithoutPlayOrderAttributeOnPoints_CountingOrderNavigationProcessor()
        {
            var element = XElement.Parse($@"<{NcxXmlNames.NavMapElementName} xmlns=""{XmlNamespaces.Ncx}"">
                <{NcxXmlNames.NavPointElementName} />
            </{NcxXmlNames.NavMapElementName}>");

            var result = NavigationOrderProcessor.Create(element);

            Assert.IsInstanceOfType(result, typeof(CountingOrderNavigationProcessor));
        }
コード例 #2
0
        public void Create_WithNavMapAndPlayOrderOnPoints_ReturnsPlayOrderOrderNavigationProcessor()
        {
            var element = XElement.Parse($@"<{NcxXmlNames.NavMapElementName} xmlns=""{XmlNamespaces.Ncx}"">
                <{NcxXmlNames.NavPointElementName} {NcxXmlNames.PlayOrderAttributeName}=""0"" />
            </{NcxXmlNames.NavMapElementName}>");

            var result = NavigationOrderProcessor.Create(element);

            Assert.IsInstanceOfType(result, typeof(PlayOrderOrderNavigationProcessor));
        }
コード例 #3
0
        public void Create_WithNavMapNull_ReturnsCountingOrderProcessor()
        {
            var result = NavigationOrderProcessor.Create(null);

            Assert.IsInstanceOfType(result, typeof(CountingOrderNavigationProcessor));
        }