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

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

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