public void FixBookIdAndLineageIfNeeded_FixesBasicBookId()
{
_bookDom = new HtmlDom(
@"<html>
<head>
<meta content='text/html; charset=utf-8' http-equiv='content-type' />
<meta name='bloomBookId' content='" + Bloom.Book.Book.kIdOfBasicBook + @"' />
<title>Test Shell</title>
<link rel='stylesheet' href='Basic Book.css' type='text/css' />
<link rel='stylesheet' href='../../previewMode.css' type='text/css' />;
</head>
<body>
<div class='bloom-page'>
</div>
</body></html>");
_metadata.Id = "";
var book = CreateBook();
// 0 indicates it should NOT match, that is, that it doesn't have the mistaken ID any more.
AssertThatXmlIn.Dom(book.RawDom).HasSpecifiedNumberOfMatchesForXpath("//meta[@name='bloomBookId' and @content='" + Bloom.Book.Book.kIdOfBasicBook + "']", 0);
// but it should have SOME ID. Hopefully a new one, but that is hard to verify.
AssertThatXmlIn.Dom(book.RawDom).HasSpecifiedNumberOfMatchesForXpath("//meta[@name='bloomBookId']", 1);
}