protected override void Context() { Capture_Console_Output_To_String(); string[] consoleArgs = new string[0]; Console.Main(consoleArgs); }
protected override void Context() { Capture_Console_Output_To_String(); _assemblyFilePath = Guid.NewGuid().ToString(); string[] consoleArgs = new string[] { _assemblyFilePath }; Console.Main(consoleArgs); }
protected override void Because_After() { _assemblyFilePath = Assembly.GetExecutingAssembly().Location; string[] consoleArgs = new string[] { _assemblyFilePath }; _reportGenerator.VerifyAll(); // because Console.Main(consoleArgs); _reportGenerator.VerifyAll(); }