private void document_member <T>()
 {
     members = matcher.DocumentMembers(DocMembers(typeof(T)), new XmlNode[0]);
 }
Exemplo n.º 2
0
        public void should_match_type()
        {
            var undocumentedMembers = DocMembers(typeof(First), typeof(Second), typeof(Third));
            var snippets            = new[] { @"<member name=""T:Example.Second"" />".ToNode() };
            var members             = matcher.DocumentMembers(undocumentedMembers, snippets);

            var member = members.FirstOrDefault(x => x.Name == Identifier.FromType(typeof(Second))) as DocumentedType;

            member.ShouldNotBeNull();
            member.Xml.ShouldEqual(snippets[0]);
            member.TargetType.ShouldEqual(typeof(Second));
        }