BloomTests.Book.BookStarterTests.CreateBookOnDiskFromTemplate_HasEnglishTextArea_VernacularTextAreaAdded C# (CSharp) Method

CreateBookOnDiskFromTemplate_HasEnglishTextArea_VernacularTextAreaAdded() private method

        public void CreateBookOnDiskFromTemplate_HasEnglishTextArea_VernacularTextAreaAdded()
        {
            _starter.TestingSoSkipAddingXMatter = true;
            var body = @"<div class='bloom-page'>
                        <div class='bloom-translationGroup'>
                         <div lang='en'>This is some English</div>
                        </div>
                    </div>";
            string sourceTemplateFolder = GetShellBookFolder(body,null);
            var path = GetPathToHtml(_starter.CreateBookOnDiskFromTemplate(sourceTemplateFolder, _projectFolder.Path));
            //nb: testid is used rather than id because id is replaced with a guid when the copy is made

            AssertThatXmlIn.HtmlFile(path).HasSpecifiedNumberOfMatchesForXpath("//div/div[contains(@class,'bloom-translationGroup')]/div[@lang='en']", 1);
            AssertThatXmlIn.HtmlFile(path).HasSpecifiedNumberOfMatchesForXpath("//div/div[contains(@class,'bloom-translationGroup')]/div[@lang='xyz']", 1);
            //the new text should also have been emptied of English
            AssertThatXmlIn.HtmlFile(path).HasSpecifiedNumberOfMatchesForXpath("//div/div[contains(@class,'bloom-translationGroup')]/div[@lang='xyz' and not(text())]", 1);
        }
BookStarterTests