Ejemplo n.º 1
0
        public void TestNewSpringRunner()
        {
            Runner runner = BootstrapperFactory.NewSpringRunner(LoggerSetter, SpringBootstrapper);

            Assert.IsNotNull(runner);
            Assert.IsInstanceOf(typeof(SpringRunnerImpl), runner);
            Assert.IsTrue(LoggerSetterImpl.LoggerRecipients.Contains(runner));
        }
Ejemplo n.º 2
0
        public void TestRun()
        {
            Runner runner = BootstrapperFactory.NewSpringRunner(LoggerSetter, SpringBootstrapper);

            Bootstrapper.Bootstrap();
            Assert.IsFalse(runner.IsDone);
            runner.Run();
            Assert.IsTrue(runner.IsDone);
        }