示例#1
0
 protected bool Equals(Request other)
 {
     if (!string.Equals(Url, other.Url))
     {
         return(false);
     }
     if (!string.Equals(Post, other.Post))
     {
         return(false);
     }
     if (!string.Equals(File, other.File))
     {
         return(false);
     }
     if (!Compare.Lists(Method, other.Method))
     {
         return(false);
     }
     if (!Compare.NameValueCollections(Headers, other.Headers))
     {
         return(false);
     }
     if (!Compare.NameValueCollections(Query, other.Query))
     {
         return(false);
     }
     return(true);
 }
示例#2
0
 protected bool Equals(Response other)
 {
     if (Status != other.Status)
     {
         return(false);
     }
     if (Latency != other.Latency)
     {
         return(false);
     }
     if (!string.Equals(Body, other.Body))
     {
         return(false);
     }
     if (!string.Equals(File, other.File))
     {
         return(false);
     }
     if (!Compare.NameValueCollections(Headers, other.Headers))
     {
         return(false);
     }
     return(true);
 }