Beispiel #1
0
        private bool Test(HttpMethod expected, HttpMethod actual)
        {
            var sut = new MethodMatcher(expected);

            return(sut.Matches(new HttpRequestMessage(actual,
                                                      "http://tempuri.org/home")));
        }
Beispiel #2
0
 public bool MatchesIgnoringIsActive(Invocation invocation)
 {
     if (Receiver != invocation.Receiver)
     {
         return(false);
     }
     if (!MethodMatcher.Matches(invocation.Method))
     {
         return(false);
     }
     if (!ArgumentsMatcher.Matches(invocation))
     {
         return(false);
     }
     if (!ExtraMatchersMatch(invocation))
     {
         return(false);
     }
     return(true);
 }
Beispiel #3
0
 public void MatchesPassingTest(MethodMetadata method, MethodMatcher matcher)
 {
     Assert.True(matcher.Matches(method));
 }
Beispiel #4
0
 public void MatchesFailingTest(MethodMetadata method, MethodMatcher matcher)
 {
     Assert.False(matcher.Matches(method));
 }