BloomTests.Book.BookDataTests.SynchronizeDataItemsThroughoutDOM_HasOnlyEnglishContributorsInDataDivButFrenchInBody_DoesNotCopyEnglishIntoFrenchSlot C# (CSharp) Method

SynchronizeDataItemsThroughoutDOM_HasOnlyEnglishContributorsInDataDivButFrenchInBody_DoesNotCopyEnglishIntoFrenchSlot() private method

        public void SynchronizeDataItemsThroughoutDOM_HasOnlyEnglishContributorsInDataDivButFrenchInBody_DoesNotCopyEnglishIntoFrenchSlot()
        {
            var dom = new HtmlDom(@"<html ><head></head><body>
                <div id='bloomDataDiv'>
                     <div data-book='originalContributions' lang='en'>the contributions</div>
                </div>
                <div class='bloom-page verso'>
                     <div id='originalContributions' class='bloom-translationGroup'>
                        <div data-book='originalContributions' lang='fr'>les contributeurs</div>
                        <div data-book='originalContributions' lang='xyz'></div>
                    </div>
                </div>
                </body></html>");
            var collectionSettings = new CollectionSettings()
            {
                Language1Iso639Code = "etr",
                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 not touch existing French Contributions");
            //Assert.IsFalse(frenchContributions.HasAttribute("bloom-languageBloomHadToCopyFrom"));
        }
BookDataTests