public void XmlDocId_PropertyId_NonProperty() { var info = typeof(MyClass).GetMember(nameof(MyClass.stringField)).First(); Assert.ThrowsException <ArgumentException>(() => XmlDocId.PropertyId(info)); }
public void XmlDocId_PropertyId_Null() { Assert.ThrowsException <ArgumentNullException>(() => XmlDocId.PropertyId(null)); }