Пример #1
0
        public void Items_will_contain_item_by_name_when_an_element_is_added()
        {
            var doc = new DomDocument();
            var e   = doc.CreateElement("hello").Attribute("id", "id");

            var index = doc.CreateAttributeIndex("id");

            Assume.Empty(index);

            var a = doc.AppendElement("root").Append(e);

            Assert.SetEqual(new [] { e }, index["id"]);
        }