public void TestRun() { Program program = MainFactory.NewProgram(MockBootstrapper, MockRunner); program.Run(); Assert.IsTrue(program.Bootstrapper.IsDone); Assert.IsTrue(program.Runner.IsDone); }
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); }