Example #1
0
        public void XmlDocId_PropertyId_NonProperty()
        {
            var info = typeof(MyClass).GetMember(nameof(MyClass.stringField)).First();

            Assert.ThrowsException <ArgumentException>(() => XmlDocId.PropertyId(info));
        }
Example #2
0
 public void XmlDocId_PropertyId_Null()
 {
     Assert.ThrowsException <ArgumentNullException>(() => XmlDocId.PropertyId(null));
 }