public void testExplicitlyDefinedTaskSchedulerHasCorrectType() { IApplicationContext ctx = TestUtils.GetContext(@"Config\messageBusWithTaskScheduler.xml"); ITaskScheduler scheduler = (ITaskScheduler)ctx.GetObject("taskScheduler"); Assert.That(scheduler.GetType(), Is.EqualTo(typeof(StubTaskScheduler))); }