main
 1using System;
 2using System.Collections.Generic;
 3using System.Reflection;
 4
 5namespace Spec.Dox
 6{
 7    public class Program
 8    {
 9        static void Main(string[] args)
10        {
11            try
12            {
13                dispay(args);
14                new Console().Execute(args);
15            }
16            catch (ReflectionTypeLoadException e)
17            {
18                System.Console.Out.WriteLine(e);
19                foreach (var error in e.LoaderExceptions)
20                {
21                    System.Console.Out.WriteLine(error);
22                }
23            }
24            catch (Exception e)
25            {
26                System.Console.Out.WriteLine(e);
27                System.Console.Out.WriteLine("spec.dox.exe [full path to assembly to inspect] [full name of attribute decorating each test]");
28                System.Console.Out.WriteLine("e.g...");
29                System.Console.Out.WriteLine("spec.dox.exe c:/development/test.dll TestAttribute");
30            }
31        }
32
33        static void dispay(IEnumerable<string> args)
34        {
35            System.Console.Out.WriteLine("Received:");
36            foreach (var arg in args) System.Console.Out.WriteLine(arg);
37            System.Console.Out.WriteLine();
38        }
39    }
40}