Exemplo n.º 1
0
        public void BuildTreeFromWorldWithAutoGeneratedGrass()
        {
            var rawData = OTBMTestWorldsHelper.GetSerializedWorldData(OTBMTestWorldsHelper.Worlds.AutoPlacedGrass);

            var tree = OTBDeserializer.DeserializeOTBData(
                serializedOTBData: rawData);

            Assert.IsTrue(tree.Children.Count == 1);
        }
Exemplo n.º 2
0
        public void BuildTreeFromEmptyWorld()
        {
            var rawData = OTBMTestWorldsHelper.GetSerializedWorldData(OTBMTestWorldsHelper.Worlds.Empty);

            var tree = OTBDeserializer.DeserializeOTBData(
                serializedOTBData: rawData);

            Assert.IsTrue(tree.Children.Count == 1);
        }
Exemplo n.º 3
0
        public void BuildTreeFromWorldWithDirtAndMexcalibur()
        {
            var rawData = OTBMTestWorldsHelper.GetSerializedWorldData(OTBMTestWorldsHelper.Worlds.DirtAndMexcalibur);

            var tree = OTBDeserializer.DeserializeOTBData(
                serializedOTBData: rawData);

            Assert.IsTrue(tree.Children.Count == 1);
        }
Exemplo n.º 4
0
        public void BuildTreeFromEmptyWorld()
        {
            var rawData = OTBMTestWorldsHelper.GetSerializedWorldData(OTBMTestWorldsHelper.Worlds.Empty);

            var otbmFormatSpecifierLength = 4;
            var tree = OTBDeserializer.DeserializeOTBData(
                serializedOTBData: rawData,
                skipFirstBytes: otbmFormatSpecifierLength);

            Assert.IsTrue(tree.Children.Count == 1);
        }
Exemplo n.º 5
0
        public void BuildTreeFromWorldWithAutoGeneratedGrass()
        {
            var rawData = OTBMTestWorldsHelper.GetSerializedWorldData(OTBMTestWorldsHelper.Worlds.AutoPlacedGrass);

            var otbmFormatSpecifierLength = 4;
            var tree = OTBDeserializer.DeserializeOTBData(
                serializedOTBData: rawData,
                skipFirstBytes: otbmFormatSpecifierLength);

            Assert.IsTrue(tree.Children.Count == 1);
        }