BloomTests.Book.BookTests.SavePage_ChangeMadeToSrcOfImg_StorageUpdated C# (CSharp) Method

SavePage_ChangeMadeToSrcOfImg_StorageUpdated() private method

private SavePage_ChangeMadeToSrcOfImg_StorageUpdated ( ) : void
return void
        public void SavePage_ChangeMadeToSrcOfImg_StorageUpdated()
        {
            var book = CreateBook();
            var dom = book.GetEditableHtmlDomForPage(book.GetPages().ToArray()[1]);
            var imgInEditingDom = dom.SelectSingleNodeHonoringDefaultNS("//img[@id='img1']") as XmlElement;
            imgInEditingDom.SetAttribute("src", "changed.png");

            book.SavePage(dom);
            var imgInStorage = _storage.Object.Dom.RawDom.SelectSingleNodeHonoringDefaultNS("//img[@id='img1']") as XmlElement;

            Assert.AreEqual("changed.png", imgInStorage.GetAttribute("src"));
        }
BookTests