private void CheckBinariesInPageByByte(Page page, Stream expectedBinaryStream, Stream expectedPSettingsStream)
{
bool binariesEqual = CompareStreams(expectedBinaryStream, page.Binary.GetStream());
bool psettingsEqual = CompareStreams(expectedPSettingsStream, page.PersonalizationSettings.GetStream());
Assert.IsTrue(binariesEqual, "The Binary of the given page doesn't match the expected value.");
Assert.IsTrue(psettingsEqual, "The PersonalizationSettings of the given page doesn't match the expected value.");
}