public void TransferItemWithNegativeAmount_test()
    {
        Inventory source      = new Inventory(1);
        Inventory destination = new Inventory(1);
        ItemData  itemData    = GetItemDataFixture();

        Assert.That(InventoryUtils.TransferItem(source, destination, itemData, -1), Is.False);
        Assert.That(source.CheckIfItemExistsInInventory(itemData), Is.False);
        Assert.That(destination.CheckIfItemExistsInInventory(itemData), Is.False);
    }
    public void TransferItemWithFullDestination_test()
    {
        Inventory source      = new Inventory(1);
        Inventory destination = new Inventory(1);

        ItemData itemData = GetItemDataFixture();

        List <int> indexes = new List <int>();

        Assert.That(destination.AddItemToInventory(itemData, Inventory.MAX_STACK, ref indexes), Is.True);
        Assert.That(indexes[0], Is.EqualTo(0));

        Assert.That(InventoryUtils.TransferItem(source, destination, itemData, 15), Is.False);

        Assert.That(source.CheckIfItemExistsInInventory(itemData), Is.False);
        Assert.That(destination.CheckIfItemExistsInInventory(itemData, out int amount), Is.True);
        Assert.That(amount, Is.EqualTo(Inventory.MAX_STACK));
    }