Exemplo n.º 1
0
			public void SetUp()
			{
				log = Substitute.For<ILog>();
				commands = Substitute.For<IDictionary<string, ICommand>>();

				entryPoint = new EntryPoint(log, commands);
			}
Exemplo n.º 2
0
		public void BeforeScenario()
		{
			writer = new StringWriter();
			
			IContainer container = Ioc.CreateAcceptanceTestsContainer(writer, new LogLevel[] { LogLevel.Info, LogLevel.Error });
			
			entryPoint = container.Resolve<EntryPoint>();
		}
Exemplo n.º 3
0
			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);
			}
Exemplo n.º 4
0
		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>();
		}
Exemplo n.º 6
0
			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);
			}
Exemplo n.º 7
0
			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);
			}
Exemplo n.º 8
0
			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);
			}