SenseNet.ContentRepository.Tests.NewVersioningTest.CheckBinariesInPageByByte C# (CSharp) Метод

CheckBinariesInPageByByte() приватный Метод

private CheckBinariesInPageByByte ( Page page, Stream expectedBinaryStream, Stream expectedPSettingsStream ) : void
page SenseNet.Portal.Page
expectedBinaryStream Stream
expectedPSettingsStream Stream
Результат void
        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.");
        }