BloomTests.CLI.HydrateBookCommandTests.PresetIsApp_A5LandscapeChangedToDevice16x9Landscape C# (CSharp) Method

PresetIsApp_A5LandscapeChangedToDevice16x9Landscape() private method

        public void PresetIsApp_A5LandscapeChangedToDevice16x9Landscape()
        {
            var code = HydrateBookCommand.Handle(new HydrateParameters()
            {
                Path = _bookFolder.FolderPath,
                Preset = "app",
                VernacularIsoCode = "en"
            });
            Assert.AreEqual(0, code, "Should return an exit code of 0, meaning it is happy.");
            var html = File.ReadAllText(_eventualHtmlPath);
            AssertThatXmlIn.File(_eventualHtmlPath).HasAtLeastOneMatchForXpath("//div[contains(@class,'bloom-page') and contains(@class,'Device16x9Landscape')]");
            Assert.That(!html.Contains("A5Landscape"));
        }