public void SynchronizeDataItemsThroughoutDOM_HasFrenchAndEnglishContributorsInDataDiv_DoesNotCopyEnglishIntoFrenchSlot()
{
var dom = new HtmlDom(@"<html ><head></head><body>
<div id='bloomDataDiv'>
<div data-book='originalContributions' lang='en'>the contributions</div>
<div data-book='originalContributions' lang='fr'>les contributeurs</div>
</div>
<div class='bloom-page verso'>
<div id='originalContributions' class='bloom-translationGroup'>
<div data-book='originalContributions' lang='fr'></div>
<div data-book='originalContributions' lang='xyz'></div>
</div>
</div>
</body></html>");
var collectionSettings = new CollectionSettings()
{
Language1Iso639Code = "xyz",
Language2Iso639Code = "fr"
};
var data = new BookData(dom, collectionSettings, null);
data.SynchronizeDataItemsThroughoutDOM();
XmlElement frenchContributions = (XmlElement)dom.SelectSingleNodeHonoringDefaultNS("//*[@data-book='originalContributions' and @lang='fr']");
Assert.AreEqual("les contributeurs", frenchContributions.InnerText, "Should use the French, not the English even though the French in the body was empty");
XmlElement vernacularContributions = (XmlElement)dom.SelectSingleNodeHonoringDefaultNS("//*[@data-book='originalContributions' and @lang='xyz']");
Assert.AreEqual("", vernacularContributions.InnerText, "Should not copy Edolo into Vernacualr Contributions. Only national language fields get this treatment");
}