private bool EqualsData(TcpOptionAuthentication other) { return(other != null && KeyId.Equals(other.KeyId) && RequestedNextKeyId.Equals(other.RequestedNextKeyId) && MessageAuthenticationCode.SequenceEqual(other.MessageAuthenticationCode)); }
public void StaticEqualsTest() { Assert.IsTrue(KeyId.Equals(null, null)); Assert.IsFalse(KeyId.Equals(new KeyId("0123456789ABCDEF"), null)); Assert.IsFalse(KeyId.Equals(null, new KeyId("0123456789ABCDEF"))); Assert.IsFalse(KeyId.Equals(new KeyId("A123456789ABCDEF"), new KeyId("B123456789ABCDEF"))); Assert.IsTrue(KeyId.Equals(new KeyId("0123456789ABCDEF"), new KeyId("0123456789ABCDEF"))); }