コード例 #1
0
        public void DropExcludedFrameworks_FrameworkAlternateWithOneFramework_FrameworkOneLeft()
        {
            XDocument document       = ReadXDocument(XmlConsts.MultiFrameworkXml2Second);
            var       mdocFileSource = new MDocFileSource(null, ApiStyle.Classic, "One");

            mdocFileSource.DropExcludedFrameworks(document);

            Assert.AreEqual(NormalizeXml(MultiFrameworkXml2SecondFrameworkTwo), NormalizeXml(document.ToString()));
        }
コード例 #2
0
        public void DropExcludedFrameworks_NoFrameworkModeFrameworkAlternateWithOneFramework_NoChangesInXml()
        {
            XDocument document       = ReadXDocument(XmlConsts.MultiFrameworkXml2Second);
            var       mdocFileSource = new MDocFileSource(null, ApiStyle.Classic, null);

            mdocFileSource.DropExcludedFrameworks(document);

            Assert.AreEqual(NormalizeXml(XmlConsts.MultiFrameworkXml2Second), NormalizeXml(document.ToString()));
        }
コード例 #3
0
        public void DropExcludedFrameworks_NoNodesWithFrameworkAlternate_NoChangesInXml()
        {
            XDocument document       = ReadXDocument(XmlConsts.NormalSingleXml2);
            var       mdocFileSource = new MDocFileSource(null, ApiStyle.Classic, "One");

            mdocFileSource.DropExcludedFrameworks(document);

            Assert.AreEqual(NormalizeXml(XmlConsts.NormalSingleXml2), NormalizeXml(document.ToString()));
        }