Пример #1
0
 /// <summary>
 ///     <para>Overriden. Indicates whether the current object is equal to another object of the same type.</para>
 /// </summary>
 /// <returns>
 ///     <para>true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.</para>
 /// </returns>
 /// <param name="other">
 ///     <para>An object to compare with this object.</para>
 /// </param>
 public bool Equals(ObjectReference other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     return(TypeId.Equals(other.TypeId) && ObjectId.Equals(other.ObjectId));
 }
Пример #2
0
 public void Equals_SameObj()
 {
     uut.Equals(uut).Should().BeTrue();
 }