public void ensureDifferentTypeObjectIsNotEqual() { ProductSlotWidths slotWidths = ProductSlotWidths.valueOf(3, 14, 8); CustomizedDimensions customizedDimensions = CustomizedDimensions.valueOf(3, 14, 8); Assert.False(slotWidths.Equals(customizedDimensions)); }
public void ensureNullObjectIsNotEqual() { ProductSlotWidths slotWidths = ProductSlotWidths.valueOf(3, 14, 8); Assert.False(slotWidths.Equals(null)); }
public void ensureSameInstanceIsEqual() { ProductSlotWidths slotWidths = ProductSlotWidths.valueOf(3, 14, 8); Assert.True(slotWidths.Equals(slotWidths)); }