public void activate_method_runs_the_action()
        {
            var action = MockRepository.GenerateMock<Action>();

            var activator = new LambdaActivator("something", action);
            activator.Activate(null, null);

            action.AssertWasCalled(x => x.Invoke());
        }
        public void activate_generic_lambda()
        {
            string name = "Jeremy";
            var action = MockRepository.GenerateMock<Action<string>>();

            var activator = new LambdaActivator<string>(name, "some description", action);
            activator.Activate(null, null);

            action.AssertWasCalled(x => x.Invoke(name));
        }
 public void to_string_just_repeats_the_ctor_arg()
 {
     var activator = new LambdaActivator("some description", () => { });
     activator.ToString().ShouldEqual("some description");
 }