コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }