public void IsExcludedFramework_FrameworkAlternateIncludesFrameworkNameInManyValues_ReturnsFalse() { var mdocFileSource = new MDocFileSource(null, ApiStyle.Classic, "One"); var member = XElement.Parse(@"<Member FrameworkAlternate=""One;Two""></Member>"); var isExcludedFramework = mdocFileSource.IsExcludedFramework(member); Assert.IsFalse(isExcludedFramework); }
public void IsExcludedFramework_FrameworkAlternateDoesntIncludeFrameworkName_ReturnsTrue() { var mdocFileSource = new MDocFileSource(null, ApiStyle.Classic, "One"); var member = XElement.Parse(@"<Member FrameworkAlternate=""Two""></Member>"); var isExcludedFramework = mdocFileSource.IsExcludedFramework(member); Assert.IsTrue(isExcludedFramework); }
public void IsExcludedFramework_NoFrameworkAlternate_ReturnsFalse() { var mdocFileSource = new MDocFileSource(null, ApiStyle.Classic, "One"); var member = XElement.Parse(@"<Member></Member>"); var isExcludedFramework = mdocFileSource.IsExcludedFramework(member); Assert.IsFalse(isExcludedFramework); }