Esempio n. 1
0
        public void AppendAttribute_operations_should_use_specialization_type_by_default(Func <DomElement, DomAttribute> op)
        {
            var doc       = new RDocument();
            var attribute = op(doc.AppendElement("cool"));

            Assert.IsInstanceOf(typeof(RAttribute), attribute);
        }
Esempio n. 2
0
        public void AppendProcessingInstruction_operations_should_use_specialization_type_by_default()
        {
            var doc = new RDocument();
            var pi  = doc.AppendElement("cool").AppendProcessingInstruction("k", "");

            Assert.IsInstanceOf(typeof(RProcessingInstruction), pi);
        }
Esempio n. 3
0
        public void AppendElement_operations_should_use_specialization_type_by_default(Func <DomElement, DomElement> op)
        {
            var root = new RDocument().AppendElement("documentElement");
            var ele  = op(root);

            Assert.IsInstanceOf(typeof(RElement), ele);
        }