public bool Equals(Coin other) { if (ReferenceEquals(this, other)) { return(true); } if (other is null) { return(false); } return(Reference.Equals(other.Reference)); }
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))); }
public void Equals_SameObj() { uut.Equals(uut).Should().BeTrue(); }