public void all_commands_usage_graph_works()
        {
            var factory = new CommandFactory();

            factory.RegisterCommands(typeof(IFubuCommand).Assembly);

            factory.AllCommandTypes().Each(t =>
            {
                try
                {
                    var usageGraph = new UsageGraph(t);
                    usageGraph.WriteUsages("fubu");

                    usageGraph.Usages.Any().ShouldBeTrue();
                }
                catch (Exception e)
                {
                    throw new ApplicationException("Command type:  " + t.FullName, e);
                }
            });
        }
Esempio n. 2
0
 public void smoke_test_writing_usage()
 {
     theUsageGraph.WriteUsages("fubu");
 }