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)); }
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)); }
public void Create_WithNavMapNull_ReturnsCountingOrderProcessor() { var result = NavigationOrderProcessor.Create(null); Assert.IsInstanceOfType(result, typeof(CountingOrderNavigationProcessor)); }