Esempio n. 1
0
        public void GetHashCode_OtherLagItemWithDifferentElement_ReturnsDifferentValue()
        {
            var value1 = new LagItem <int>(42, 17);
            var value2 = new LagItem <int>(41, 17);

            Assert.That(value2.GetHashCode(), Is.Not.EqualTo(value1.GetHashCode()));
        }
Esempio n. 2
0
        public void GetHashCode_OtherLagItemWithSameValues_ReturnsSameValue()
        {
            var value1 = new LagItem <int>(42, 17);
            var value2 = new LagItem <int>(42, 17);

            Assert.That(value2.GetHashCode(), Is.EqualTo(value1.GetHashCode()));
        }