コード例 #1
0
 /// <inheritdoc />
 public bool Equals(BinaryAttachment other)
 {
     return(other != null &&
            Name == other.Name &&
            ContentType == other.ContentType &&
            GenericCollectionUtils.ElementsEqual(bytes, other.bytes));
 }
コード例 #2
0
 public override bool Equals(object obj)
 {
     // Note: We must also compare generic arguments to determine exact method equality.
     return(base.Equals(obj) &&
            GenericCollectionUtils.ElementsEqual(GenericArguments, ((NativeMethodWrapper)obj).GenericArguments));
 }
コード例 #3
0
ファイル: SectionTag.cs プロジェクト: soelske/mbunit-v3
 /// <inheritdoc />
 public bool Equals(SectionTag other)
 {
     return(other != null &&
            name == other.name &&
            GenericCollectionUtils.ElementsEqual(Contents, other.Contents));
 }
コード例 #4
0
 /// <inheritdoc />
 public bool Equals(StructuredText other)
 {
     return(other != null &&
            GenericCollectionUtils.ElementsEqual(attachments, other.attachments) &&
            bodyTag.Equals(other.bodyTag));
 }
コード例 #5
0
 /// <inheritdoc />
 public bool Equals(MarkerTag other)
 {
     return(other != null &&
            Marker == other.Marker &&
            GenericCollectionUtils.ElementsEqual(Contents, other.Contents));
 }
コード例 #6
0
ファイル: BodyTag.cs プロジェクト: soelske/mbunit-v3
 /// <inheritdoc />
 public bool Equals(BodyTag other)
 {
     return(other != null &&
            GenericCollectionUtils.ElementsEqual(Contents, other.Contents));
 }