Beispiel #1
0
        public void ItParsesSummaries(Type type, string methodName, string summary)
        {
            var docs      = CommentDocumentation.ParseFile("Ancestry.Daisy.Tests.XML");
            var methodDoc = docs.ForMethod(type.GetMethod(methodName));

            Assert.IsNotNull(methodDoc);
            Assert.AreEqual(summary, methodDoc.Summary);
        }
Beispiel #2
0
        public void ItParsesParameters(Type type, string methodName, string paramName, string paramDescription)
        {
            var docs     = CommentDocumentation.ParseFile("Ancestry.Daisy.Tests.XML");
            var paramDoc = docs.ForMethod(type.GetMethod(methodName))
                           .Parameters.With(paramName);

            Assert.IsNotNull(paramDoc);
            Assert.AreEqual(paramDescription, paramDoc);
        }