public void HoverDefaultTransactionTargetEqpII(IEquippableItemIcon pickedEqpII)
        {
            IEquipToolIG        relevantIG           = this.GetRelevantEqpToolIG(pickedEqpII);
            IEquippableItemIcon defaultTATargetEqpII = relevantIG.GetDefaultTATargetEqpII(pickedEqpII);

            if (defaultTATargetEqpII != null)
            {
                defaultTATargetEqpII.CheckForHover();
            }
        }
    public void GetRelevantEquipIG_ArgItemTempIsCGears_ReturnsRelevantEquippedCGearsIG()
    {
        ITestEquipToolIGManagerConstArg arg;
        TestEquipToolIGManager          testIGManager = CreateTestEquipToolIGManager(out arg);
        IEquippableItemIcon             pickedEqpII   = Substitute.For <IEquippableItemIcon>();

        pickedEqpII.GetItemTemplate().Returns(Substitute.For <ICarriedGearTemplate>());

        IEquipToolIG actualEqpToolIG = testIGManager.GetRelevantEquipIG(pickedEqpII);

        Assert.That(actualEqpToolIG, Is.SameAs(arg.cgIG));
    }
 protected override bool IsEligibleForHover(IItemIcon pickedII)
 {
     if (pickedII is IEquippableItemIcon)
     {
         IEquippableItemIcon pickedEqpII    = pickedII as IEquippableItemIcon;
         IUIItem             pickedItem     = pickedEqpII.GetUIItem();
         IItemTemplate       pickedItemTemp = pickedItem.GetItemTemplate();
         if (pickedEqpII.IsBowOrWearItemIcon())               // always swapped
         {
             return(true);
         }
         else
         {
             if (pickedEqpII.IsInEqpIG())
             {
                 return(true);                 //always revertable
             }
             else                              // pickd from pool
             {
                 if (pickedEqpII.IsEquipped()) //always has the same partially picked item
                 {
                     return(true);
                 }
                 else
                 {
                     IEquipToolIG relevantEqpIG = thisEqpIITAM.GetRelevantEquipIG(pickedEqpII);
                     if (relevantEqpIG.GetSize() == 1)                            //swap target is deduced
                     {
                         return(true);
                     }
                     else
                     {
                         if (relevantEqpIG.HasSlotSpace())                               //add target is deduced
                         {
                             return(true);
                         }
                         else
                         {
                             return(false);
                         }
                     }
                 }
             }
         }
     }
     else
     {
         throw new System.ArgumentException("pickedII must be of type IEquippableItemIcon");
     }
 }