Exemple #1
0
 public bool Equals(Coin other)
 {
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (other is null)
     {
         return(false);
     }
     return(Reference.Equals(other.Reference));
 }
Exemple #2
0
 public bool Equals(Coin other)
 {
     TR.Enter();
     if (ReferenceEquals(this, other))
     {
         return(TR.Exit(true));
     }
     if (ReferenceEquals(null, other))
     {
         return(TR.Exit(false));
     }
     return(TR.Exit(Reference.Equals(other.Reference)));
 }
Exemple #3
0
 public void Equals_SameObj()
 {
     uut.Equals(uut).Should().BeTrue();
 }