public void GetHashCode_returns_different_values_with_different_value() { // arrange TagIntArray target; int actual; int notExpected; target = new TagIntArray(string.Empty, new[] { 2190, 2994, 3248, 4294394 }); notExpected = new TagIntArray(string.Empty, new[] { 2190, 2994, 3248, 294394 }).GetHashCode(); // act actual = target.GetHashCode(); // assert Assert.NotEqual(notExpected, actual); }
public void GetHashCode_returns_same_value_for_matching_tags() { // arrange TagIntArray target; int actual; int expected; target = new TagIntArray("beta", new[] { 2190, 2994, 3248, 4294394 }); expected = new TagIntArray("beta", new[] { 2190, 2994, 3248, 4294394 }).GetHashCode(); // act actual = target.GetHashCode(); // assert Assert.Equal(expected, actual); }