Ejemplo n.º 1
0
        public void ChangingValidListTagType()
        {
            var list = new NbtList();
            list.Tags.Add(new NbtInt());

            Assert.DoesNotThrow(() => list.SetListType(NbtTagType.TAG_Int));
        }
Ejemplo n.º 2
0
        public void ChangingInvalidListTagType()
        {
            var list = new NbtList();
            list.Tags.Add(new NbtInt());

            Assert.Throws<Exception>(() => list.SetListType(NbtTagType.TAG_Short));
        }
Ejemplo n.º 3
0
        public void ChangingInvalidListTagType()
        {
            var list = new NbtList();

            list.Tags.Add(new NbtInt());

            Assert.Throws <Exception>(() => list.SetListType(NbtTagType.TAG_Short));
        }
Ejemplo n.º 4
0
        public void ChangingValidListTagType()
        {
            var list = new NbtList();

            list.Tags.Add(new NbtInt());

            Assert.DoesNotThrow(() => list.SetListType(NbtTagType.TAG_Int));
        }