public void GetHashCode_Differs_Given_Different_Key() { var k1 = new WaitKey(1, "test", 5m); var k2 = new WaitKey(2, "foo", 2.5m); Assert.NotEqual(k1.GetHashCode(), k2.GetHashCode()); }
public void GetHashCode_Matches_Given_Identical_Key() { var k1 = new WaitKey(1, "test", 5m); var k2 = new WaitKey(1, "test", 5m); Assert.Equal(k1.GetHashCode(), k2.GetHashCode()); }
public void GetHashCode_Returns_0_For_Null_Parts() { var k = new WaitKey(); Assert.Equal(0, k.GetHashCode()); }