예제 #1
0
 public void should_only_match_calls_with_handler_type_ending_with_handler()
 {
     _policy
     .Matches(HandlersObjectMother.HandlerCall())
     .ShouldBeTrue();
     _policy
     .Matches(HandlersObjectMother.NonHandlerCall())
     .ShouldBeFalse();
 }
예제 #2
0
        public void should_only_match_calls_with_handler_type_ending_with_handler()
        {
            var log = new NulloConfigurationObserver();

            _policy
            .Matches(HandlersObjectMother.HandlerCall(), log)
            .ShouldBeTrue();
            _policy
            .Matches(HandlersObjectMother.NonHandlerCall(), log)
            .ShouldBeFalse();
        }