public void SetBookSetting_AddANewVariationToAnExistingKey_Added()
{
var bookDom = new HtmlDom(@"<html ><head></head><body>
<div id='bloomDataDiv'>
<div data-book='foo' lang='en'>English</div>
<div data-book='foo' lang='id'>Indonesian</div>
</div>
</body></html>");
bookDom.SetBookSetting("foo", "fr", "French");
AssertThatXmlIn.Dom(bookDom.RawDom).HasSpecifiedNumberOfMatchesForXpath("//div[@data-book='foo' and @lang='id' and text()='Indonesian']", 1);
AssertThatXmlIn.Dom(bookDom.RawDom).HasSpecifiedNumberOfMatchesForXpath("//div[@data-book='foo' and @lang='en' and text()='English']", 1);
AssertThatXmlIn.Dom(bookDom.RawDom).HasSpecifiedNumberOfMatchesForXpath("//div[@data-book='foo' and @lang='fr' and text()='French']", 1);
AssertThatXmlIn.Dom(bookDom.RawDom).HasSpecifiedNumberOfMatchesForXpath("//div[@data-book='foo']", 3);
}