Example #1
0
        public void Items_Set_Get()
        {
            var hatRack = new HatRack();

            hatRack.Items[0] = new ItemStack(ItemId.VortexHelmet, stackSize: 1);
            hatRack.Items[1] = new ItemStack(ItemId.VortexHelmet, stackSize: 1);

            Assert.Equal(new ItemStack(ItemId.VortexHelmet, stackSize: 1), hatRack.Items[0]);
            Assert.Equal(new ItemStack(ItemId.VortexHelmet, stackSize: 1), hatRack.Items[1]);
        }
Example #2
0
        public void Dyes_Set_Get()
        {
            var hatRack = new HatRack();

            hatRack.Dyes[0] = new ItemStack(ItemId.RedDye, stackSize: 1);
            hatRack.Dyes[1] = new ItemStack(ItemId.RedDye, stackSize: 1);

            Assert.Equal(new ItemStack(ItemId.RedDye, stackSize: 1), hatRack.Dyes[0]);
            Assert.Equal(new ItemStack(ItemId.RedDye, stackSize: 1), hatRack.Dyes[1]);
        }
Example #3
0
        public void Id_Get()
        {
            var hatRack = new HatRack();

            Assert.Equal(TileEntityId.HatRack, hatRack.Id);
        }