Ejemplo n.º 1
0
 public void Compare(HttpVerb expected, HttpVerb actual)
 {
     _reporter.ReportInfo(String.Format("{0} has method set to {1}", _messagePrefix, expected));
     if (!expected.Equals(actual))
     {
         _reporter.ReportError(expected: expected, actual: actual);
         return;
     }
 }
Ejemplo n.º 2
0
 public void Compare(HttpVerb method1, HttpVerb method2)
 {
     _reporter.ReportInfo(String.Format("{0} has method set to {1}", _messagePrefix, method1));
     if (!method1.Equals(method2))
     {
         _reporter.ReportError(expected: method1, actual: method2);
         return;
     }
 }
 public void Compare(HttpVerb method1, HttpVerb method2)
 {
     _reporter.ReportInfo(String.Format("{0} has method set to {1}", _messagePrefix, method1));
     if (!method1.Equals(method2))
     {
         _reporter.ReportError(expected: method1, actual: method2);
         return;
     }
 }
Ejemplo n.º 4
0
 public void Compare(HttpVerb expected, HttpVerb actual)
 {
     _reporter.ReportInfo(String.Format("{0} has method set to {1}", _messagePrefix, expected));
     if (!expected.Equals(actual))
     {
         _reporter.ReportError(expected: expected, actual: actual);
         return;
     }
 }
Ejemplo n.º 5
0
        public ComparisonResult Compare(HttpVerb expected, HttpVerb actual)
        {
            var result = new ComparisonResult("has method {0}", expected);

            if (!expected.Equals(actual))
            {
                result.RecordFailure(new DiffComparisonFailure(expected, actual));
                return result;
            }

            return result;
        }
Ejemplo n.º 6
0
        public ComparisonResult Compare(HttpVerb expected, HttpVerb actual)
        {
            var result = new ComparisonResult("has method {0}", expected);

            if (!expected.Equals(actual))
            {
                result.RecordFailure(new DiffComparisonFailure(expected, actual));
                return(result);
            }

            return(result);
        }