Ejemplo n.º 1
0
        public void ensureSerialNumbersHaveSameHashCode()
        {
            CustomizedProductSerialNumber serialNumber      = new CustomizedProductSerialNumber();
            CustomizedProductSerialNumber otherSerialNumber = new CustomizedProductSerialNumber();

            Assert.Equal(serialNumber.GetHashCode(), otherSerialNumber.GetHashCode());
        }
Ejemplo n.º 2
0
        public void ensureSerialNumbersHaveDifferentHashCodes()
        {
            CustomizedProductSerialNumber serialNumber      = new CustomizedProductSerialNumber();
            CustomizedProductSerialNumber otherSerialNumber = new CustomizedProductSerialNumber();

            serialNumber.incrementSerialNumber();

            Assert.NotEqual(serialNumber.GetHashCode(), otherSerialNumber.GetHashCode());
        }