public void SetUp() { log = Substitute.For<ILog>(); commands = Substitute.For<IDictionary<string, ICommand>>(); entryPoint = new EntryPoint(log, commands); }
public void BeforeScenario() { writer = new StringWriter(); IContainer container = Ioc.CreateAcceptanceTestsContainer(writer, new LogLevel[] { LogLevel.Info, LogLevel.Error }); entryPoint = container.Resolve<EntryPoint>(); }
public void SetUp() { invalidArgument = "blah"; log = Substitute.For<ILog>(); commands = Substitute.For<IDictionary<string, ICommand>>(); commands.ContainsKey(invalidArgument).Returns(false); entryPoint = new EntryPoint(log, commands); }
public void BeforeScenario() { whitespaceRegex = new Regex(@"(\t|\r\n|\r|\n)+"); tempTestPath = Path.Combine(Path.GetTempPath(), "mulder-acceptance-test-files"); CreateTestFiles(); writer = new StringWriter(); IContainer container = Ioc.CreateAcceptanceTestsContainer(writer, new LogLevel[] { LogLevel.Info, LogLevel.Error }); entryPoint = container.Resolve<EntryPoint>(); }
public void BeforeScenario() { whitespaceRegex = new Regex(@"(\t|\r\n|\r|\n)+"); oldWorkingDirectory = Directory.GetCurrentDirectory(); mulderPoweredSitePath = Path.Combine(Path.GetTempPath(), "mulder-default-compile-test"); tempTestPath = Path.Combine(Path.GetTempPath(), "mulder-test-compile-result-files"); CreateTestFiles(); writer = new StringWriter(); IContainer container = Ioc.CreateAcceptanceTestsContainer(writer, new LogLevel[] { LogLevel.Info, LogLevel.Error }); entryPoint = container.Resolve<EntryPoint>(); }
public void SetUp() { helpOptionArgumentShort = "-h"; helpOptionArgumentQuestionMark = "-?"; helpOptionArgumentLong = "--help"; helpCommand = "help"; log = Substitute.For<ILog>(); commands = Substitute.For<IDictionary<string, ICommand>>(); entryPoint = new EntryPoint(log, commands); }
public void SetUp() { commandArgument = "command"; additionalArgument = "additionalArgument"; command = Substitute.For<ICommand>(); command.Execute(Arg.Any<string[]>()).Returns(ExitCode.Success); log = Substitute.For<ILog>(); commands = Substitute.For<IDictionary<string, ICommand>>(); commands.ContainsKey(commandArgument).Returns(true); commands[commandArgument] = command; entryPoint = new EntryPoint(log, commands); }
public void SetUp() { helpCommand = "help"; commandArgument = "command"; command = Substitute.For<ICommand>(); log = Substitute.For<ILog>(); commands = Substitute.For<IDictionary<string, ICommand>>(); commands.ContainsKey(commandArgument).Returns(true); commands[commandArgument] = command; entryPoint = new EntryPoint(log, commands); }