Example #1
0
        protected override void Context()
        {
            Capture_Console_Output_To_String();

            string[] consoleArgs = new string[0];

            Console.Main(consoleArgs);
        }
Example #2
0
        protected override void Context()
        {
            Capture_Console_Output_To_String();

            _assemblyFilePath = Guid.NewGuid().ToString();

            string[] consoleArgs = new string[] { _assemblyFilePath };

            Console.Main(consoleArgs);
        }
Example #3
0
        protected override void Because_After()
        {
            _assemblyFilePath = Assembly.GetExecutingAssembly().Location;
            string[] consoleArgs = new string[] { _assemblyFilePath };

            _reportGenerator.VerifyAll();

            // because
            Console.Main(consoleArgs);

            _reportGenerator.VerifyAll();
        }