public void XmlDocId_MemberId_Unsupported() { var info = typeof(MyClass); Assert.ThrowsException <NotSupportedException>(() => { XmlDocId.MemberId(info); }); }
public void XmlDocId_EnumValueIdId_NonEnum() { Assert.ThrowsException <ArgumentException>(() => XmlDocId.EnumValueId(typeof(MyClass), "notnull")); }
public void XmlDocId_EnumValueIdId_ValueNull() { Assert.ThrowsException <ArgumentNullException>(() => XmlDocId.EnumValueId(typeof(TestEnumWithValueComments), null)); }
public void XmlDocId_EnumValueIdId_TypeNull() { Assert.ThrowsException <ArgumentNullException>(() => XmlDocId.EnumValueId(null, "")); }
public void XmlDocId_EventId_NonEvent() { var info = typeof(MyClass).GetMember(nameof(MyClass.ValProperty)).First(); Assert.ThrowsException <ArgumentException>(() => XmlDocId.EventId(info)); }
public void XmlDocId_EventId_Null() { Assert.ThrowsException <ArgumentNullException>(() => XmlDocId.EventId(null)); }
public void XmlDocId_PropertyId_NonProperty() { var info = typeof(MyClass).GetMember(nameof(MyClass.stringField)).First(); Assert.ThrowsException <ArgumentException>(() => XmlDocId.PropertyId(info)); }