예제 #1
0
        protected override void VerifyEntry(XmlNode entry)
        {
            // contributor contains one atomPersonConstruct - verify this

            XmlNodeList contributorNodes = entry.SelectNodes("atom:contributor", this.FormatVerifier.XmlNamespaceManager);

            if (contributorNodes.Count > 0)
            {
                foreach (XmlNode contributorNode in contributorNodes)
                {
                    AtomPersonConstructVerifier atomPersonConstructVerifier = new AtomPersonConstructVerifier(this.FormatVerifier);
                    atomPersonConstructVerifier.Verify(contributorNode.OuterXml);
                }
            }
        }
예제 #2
0
        protected override void VerifyEntry(XmlNode entry)
        {
            // author contains one atomPersonConstruct - verify this

            XmlNodeList authorNodes = entry.SelectNodes("atom:author", this.FormatVerifier.XmlNamespaceManager);

            if (authorNodes.Count != 1)
            {
                AstoriaTestLog.FailAndContinue(new TestFailedException("4.1.3 Author element: count is not exactly 1"));
            }
            else
            {
                XmlNode authorNode = authorNodes[0];

                AtomPersonConstructVerifier atomPersonConstructVerifier = new AtomPersonConstructVerifier(this.FormatVerifier);
                atomPersonConstructVerifier.Verify(authorNode.OuterXml);
            }
        }
예제 #3
0
        protected override void VerifyEntry(XmlNode entry)
        {
            // contributor contains one atomPersonConstruct - verify this

            XmlNodeList contributorNodes = entry.SelectNodes("atom:contributor", this.FormatVerifier.XmlNamespaceManager);
            if (contributorNodes.Count > 0)
            {
                foreach (XmlNode contributorNode in contributorNodes)
                {
                    AtomPersonConstructVerifier atomPersonConstructVerifier = new AtomPersonConstructVerifier(this.FormatVerifier);
                    atomPersonConstructVerifier.Verify(contributorNode.OuterXml);
                }
            }
        }
예제 #4
0
        protected override void VerifyEntry(XmlNode entry)
        {
            // author contains one atomPersonConstruct - verify this

            XmlNodeList authorNodes = entry.SelectNodes("atom:author", this.FormatVerifier.XmlNamespaceManager);
            if (authorNodes.Count != 1)
            {
                AstoriaTestLog.FailAndContinue(new TestFailedException("4.1.3 Author element: count is not exactly 1"));
            }
            else
            {
                XmlNode authorNode = authorNodes[0];

                AtomPersonConstructVerifier atomPersonConstructVerifier = new AtomPersonConstructVerifier(this.FormatVerifier);
                atomPersonConstructVerifier.Verify(authorNode.OuterXml);

            }
        }