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())); }
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())); }
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())); }