示例#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));
        }
示例#2
0
        public void TestRun()
        {
            Runner runner = BootstrapperFactory.NewSpringRunner(LoggerSetter, SpringBootstrapper);

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