コード例 #1
0
        public void TestRun()
        {
            Program program = MainFactory.NewProgram(MockBootstrapper, MockRunner);

            program.Run();
            Assert.IsTrue(program.Bootstrapper.IsDone);
            Assert.IsTrue(program.Runner.IsDone);
        }
コード例 #2
0
        public void TestNewProgram()
        {
            Program program = MainFactory.NewProgram(CompositeBootstrapper, Runner);

            Assert.IsNotNull(program);
            Assert.IsInstanceOf(typeof(ProgramClass), program);
            ProgramClass programImpl = (ProgramClass)program;

            Assert.AreEqual(CompositeBootstrapper, programImpl.Bootstrapper);
        }