示例#1
0
        public void TestSwummarizer(string directoryName)
        {
            var currentDirectory = Path.GetFullPath(Assembly.GetExecutingAssembly().Location);
            var sourceDirectory  = Path.GetFullPath(Path.Combine(currentDirectory,
                                                                 @"..\..\..\..\testData\", directoryName));

            var swummaries = Swummary.Swummarize(sourceDirectory);

            foreach (var s in swummaries)
            {
                string methodName    = s.Item1;
                string methodSummary = s.Item2;

                Console.WriteLine("{0}\n{1}\n", methodName, methodSummary);
            }
        }
示例#2
0
        static void Main(string[] args)
        {
            string directory  = args[0];
            var    swummaries = Swummary.Swummarize(directory);

            // top header
            Console.WriteLine("# Swummary for " + directory);

            foreach (var s in swummaries)
            {
                string methodName    = s.Item1;
                string methodSummary = s.Item2;

                // Subheaders with each method name followed by swummary in normal text.
                Console.WriteLine("## {0}", methodName);
                Console.WriteLine(methodSummary);

                //Console.WriteLine("{0}\n{1}\n", methodName, methodSummary);
            }
        }