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

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

            serialNumber.incrementSerialNumber();

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