public static void XmlDataDocument_CreateEntityReference() { XmlDataDocument doc = new XmlDataDocument(); Assert.Throws <NotSupportedException>(() => doc.CreateEntityReference("name")); }