public void Should_remember_current_module() { var handler = new TestHandler(); IModule activeModule = null; handler.OnBeginModule = x => activeModule = x; var module = new ModuleStub("TestModule"); handler.BeginModule(module); activeModule.ShouldBeSameAs(module); }