コード例 #1
0
 public void GetHashCodeReturnsStringHashCode()
 {
     var msg = new Message("A message");
     var hashCode = msg.GetHashCode();
     Assert.AreEqual(msg.ToString().GetHashCode(), msg.GetHashCode());
 }
コード例 #2
0
 public void GetHashCodeWithNullMessage()
 {
     var msg = new Message(null, Message.MessageKind.BuildAbortedBy);
     Assert.AreEqual(msg.ToString().GetHashCode(), msg.GetHashCode());
 }