public void GetHashCodeReturnsStringHashCode() { var msg = new Message("A message"); var hashCode = msg.GetHashCode(); Assert.AreEqual(msg.ToString().GetHashCode(), msg.GetHashCode()); }
public void GetHashCodeWithNullMessage() { var msg = new Message(null, Message.MessageKind.BuildAbortedBy); Assert.AreEqual(msg.ToString().GetHashCode(), msg.GetHashCode()); }