IItemIcon CreateLeftoverII(int pickedQuantity)
        {
            IItemIcon leftoverII      = thisPickUpSystemUIElementFactory.CreateItemIcon(thisItem);
            IUIImage  leftoverIIImage = leftoverII.GetUIImage();

            leftoverII.SetParentUIE(thisItemIcon.GetParentUIE(), true);
            leftoverIIImage.CopyPosition(thisImage);
            thisIG.ReplaceAndUpdateII(thisItemIcon.GetSlotID(), leftoverII);
            leftoverII.DisemptifyInstantly(thisItem);
            leftoverII.DecreaseBy(pickedQuantity, doesIncrement: true, removesEmpty: false);

            return(leftoverII);
        }
    public void AssertPickUpSystemUIEFactoryCreateItemIconIsCalled(IItemIcon ii, IPickUpSystemUIElementFactory factory, bool expectedToReceive)
    {
        IItemIcon leftoverII = Substitute.For <IItemIcon>();

        factory.CreateItemIcon(ii.GetUIItem()).Returns(leftoverII);
        if (expectedToReceive)
        {
            factory.Received(1).CreateItemIcon(ii.GetUIItem());
        }
        else
        {
            factory.DidNotReceive().CreateItemIcon(ii.GetUIItem());
        }
    }