예제 #1
0
 private bool EqualsData(TcpOptionAuthentication other)
 {
     return(other != null &&
            KeyId.Equals(other.KeyId) &&
            RequestedNextKeyId.Equals(other.RequestedNextKeyId) &&
            MessageAuthenticationCode.SequenceEqual(other.MessageAuthenticationCode));
 }
예제 #2
0
 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")));
 }