public bool Equals(TestDiagnostic other)
 {
     if (other == null || this.GetType() != other.GetType()) return false;
     return
         _descriptor.Id == other._descriptor.Id &&
         _kind == other._kind &&
         _location == other._location &&
         _message == other._message &&
         SameData(_arguments, other._arguments);
 }
Exemple #2
0
 public bool Equals(TestDiagnostic other)
 {
     if (other == null || this.GetType() != other.GetType())
     {
         return(false);
     }
     return
         (_descriptor.Id == other._descriptor.Id &&
          _kind == other._kind &&
          _location == other._location &&
          _message == other._message &&
          SameData(_arguments, other._arguments));
 }
 public bool Equals(TestDiagnostic other)
 {
     if (other == null || this.GetType() != other.GetType())
     {
         return(false);
     }
     return
         (this.id == other.id &&
          this.kind == other.kind &&
          this.location == other.location &&
          this.message == other.message &&
          SameData(this.arguments, other.arguments));
 }
            public override bool Equals(Diagnostic obj)
            {
                if (obj == null || this.GetType() != obj.GetType())
                {
                    return(false);
                }
                TestDiagnostic other = (TestDiagnostic)obj;

                return
                    (this.id == other.id &&
                     this.kind == other.kind &&
                     this.location == other.location &&
                     this.message == other.message &&
                     SameData(this.arguments, other.arguments));
            }