public void PrioritizedNodeTests_SamePriorityHashCodesDiffer() { var node1 = new PrioritizedNode <Prioritizable>(new Prioritizable(1.21f)); var node2 = new PrioritizedNode <Prioritizable>(new Prioritizable(1.21f)); Assert.That(node1.GetHashCode(), Is.Not.EqualTo(node2.GetHashCode())); }
public void PrioritizedNodeTests_identityHashCodesSame() { var node1 = new PrioritizedNode <Prioritizable>(new Prioritizable(1.21f)); Assert.That(node1.GetHashCode(), Is.EqualTo(node1.GetHashCode())); }