Example #1
0
        public void InternalEIITest()
        {
            XmlDocument doc = new System.Xml.XmlDocument();

            doc.LoadXml(XmlConsts.internalEllXml);

            MemberReference oldmember = null;
            var             type      = GetType(typeof(mdoc.Test2.InternalEIICalss));
            var             docEnum   = new DocumentationEnumerator();

            bool internalEIIflagged = false;

            foreach (DocsNodeInfo info in docEnum.GetDocumentationMembers(doc, type, FrameworkTypeEntry.Empty))
            {
                var flag = MDocUpdater.IsMemberNotPrivateEII(info.Member);

                if (!flag)
                {
                    internalEIIflagged = true;
                    oldmember          = info.Member;
                    //Note : The following operation will not be carried out, just prompt
                    //-> DeleteMember();
                    //-> statisticsCollector.AddMetric();
                }
            }
            Assert.IsTrue(internalEIIflagged, "Internal EII was not flagged");
            Assert.AreEqual("System.String mdoc.Test2.InternalEIICalss::mdoc.Test.SampleClasses.InterfaceA.Getstring(System.Int32)", oldmember.FullName);
        }