/Source/Bifrost.Specs/Events/for_ProcessMethodInvoker/when_invoking_on_an_instance_that_can_not_handle_a_given_event.cs
# · C# · 24 lines · 19 code · 5 blank · 0 comment · 0 complexity · 6f5fa9028f975714c000e2cd19e08cfd MD5 · raw file
- using System;
- using Bifrost.Fakes.Events;
- using Machine.Specifications;
-
- namespace Bifrost.Specs.Events.for_ProcessMethodInvoker
- {
- public class when_invoking_on_an_instance_that_can_not_handle_a_given_event : given.a_process_method_invoker
- {
- static object instance;
- static SimpleEvent @event;
- static bool result;
-
- Establish context = () =>
- {
- instance = new object();
- @event = new SimpleEvent(Guid.NewGuid());
- };
-
-
- Because of = () => result = invoker.TryProcess(instance, @event);
-
- It should_result_in_false = () => result.ShouldBeFalse();
- }
- }