public void SetItem() { TestInventory inventory = CreateInventory(); var item = new Item(new ItemTemplate()); inventory.SetItem(1, item); Assert.Equal(item, inventory.Items[1]); }
public void SetItemOnSlotGraterThenSlotsCountThrowException() { TestInventory inventory = CreateInventory(99); Xunit.Assert.Throws <ArgumentOutOfRangeException>(() => inventory.SetItem(100, null)); }
public void SetItemOnNegativeSlotThrowException() { TestInventory inventory = CreateInventory(); Xunit.Assert.Throws <ArgumentOutOfRangeException>(() => inventory.SetItem(-1, null)); }