Esempio n. 1
0
        public void ensureDifferentTypeObjectIsNotEqual()
        {
            ProductSlotWidths    slotWidths           = ProductSlotWidths.valueOf(3, 14, 8);
            CustomizedDimensions customizedDimensions = CustomizedDimensions.valueOf(3, 14, 8);

            Assert.False(slotWidths.Equals(customizedDimensions));
        }
Esempio n. 2
0
        public void ensureNullObjectIsNotEqual()
        {
            ProductSlotWidths slotWidths = ProductSlotWidths.valueOf(3, 14, 8);

            Assert.False(slotWidths.Equals(null));
        }
Esempio n. 3
0
        public void ensureSameInstanceIsEqual()
        {
            ProductSlotWidths slotWidths = ProductSlotWidths.valueOf(3, 14, 8);

            Assert.True(slotWidths.Equals(slotWidths));
        }