public void UpdateVariablesAndDataDivThroughDOM_DoesNotExist_MakesOne()
{
var dom = new HtmlDom(@"<html><head></head><body><div data-book='someVariable'>world</div></body></html>");
var data = new BookData(dom, new CollectionSettings(), null);
data.UpdateVariablesAndDataDivThroughDOM();
AssertThatXmlIn.Dom(dom.RawDom).HasSpecifiedNumberOfMatchesForXpath("//body/div[1][@id='bloomDataDiv']", 1);//NB microsoft uses 1 as the first. W3c uses 0.
AssertThatXmlIn.Dom(dom.RawDom).HasSpecifiedNumberOfMatchesForXpath("//div[@id='bloomDataDiv']/div[@data-book='someVariable' and text()='world']", 1);
}