Exemple #1
0
        static int Main(string[] args)
        {
            var herald = new NullInformationHerald();
            var app    = new ShowOrStartApp(herald);

            return(app.Run(args));
        }
Exemple #2
0
        public void Run_CalledWithAQuestionMark_DisplaysHelpAndReturnsOK()
        {
            int retVal = SUT.Run(new[] { "?" });

            // assert
            MockHerald.Received().ShowHelp();
            retVal.ShouldBe(ShowOrStartApp.EXIT_OK);
        }
Exemple #3
0
 static int Main(string[] args)
 {
     var herald = new NullInformationHerald();
     var app = new ShowOrStartApp(herald);
     return app.Run(args);
 }