public void SetsCorrectClassesForNationalLanguages()
{
var code = HydrateBookCommand.Handle(new HydrateParameters
{
Path = _bookFolder.FolderPath,
Preset = "app",
VernacularIsoCode = "en",
NationalLanguage1IsoCode = "fr",
NationalLanguage2IsoCode = "sp"
});
Assert.AreEqual(0, code, "Should return an exit code of 0, meaning it is happy.");
AssertThatXmlIn.HtmlFile(_eventualHtmlPath)
.HasSpecifiedNumberOfMatchesForXpath("//div[@data-book='bookTitle' and @contenteditable='true' and @lang='fr' and contains(@class,'bloom-contentNational1')]", 1);
AssertThatXmlIn.HtmlFile(_eventualHtmlPath)
.HasSpecifiedNumberOfMatchesForXpath("//div[@data-book='bookTitle' and @contenteditable='true' and @lang='sp' and contains(@class,'bloom-contentNational2')]", 1);
}