public override bool Equals(object other) { var transaction = other as Transaction; return(transaction != null && Id == transaction.Id && Txid.Equals(transaction.Txid, StringComparison.InvariantCultureIgnoreCase) && Category == transaction.Category); }
public void NotEqualTest() { Txid txid1 = new Txid(); Txid txid2 = new Txid("0000000000000000000000000000000000000000000000000000000000000001"); Assert.True((txid1 != txid2)); ByteData data = new ByteData("773420c0ded41a55b1f1205cfb632f08f3f911a53e7338a0dac73ec6cbe3ca471907434d046185abedc5afddc2761a642bccc70af6d22b46394f1d04a8b24226"); Assert.False(txid1.Equals(data)); OutPoint outpoint1 = new OutPoint(); Assert.False(outpoint1.Equals(data)); }
public bool Equals(Outpoint other) { return(Txid.Equals(other.Txid) && Index == other.Index); }