Exemplo n.º 1
0
        public static void TestTurnip()
        {
            var data = Resources.STR_ItemName_41_Turnip;
            var obj  = new MSBT(data);

            obj.SectionOrder.Count.Should().Be(3);
            obj.TXT2.Strings.Count.Should().BeGreaterThan(0);
            obj.DebugDumpLines();
        }
Exemplo n.º 2
0
        public static void TestTownDefaultNames()
        {
            var data = Resources.STR_TownName;
            var obj  = new MSBT(data);

            obj.SectionOrder.Count.Should().Be(3);
            obj.TXT2.Strings.Count.Should().BeGreaterThan(0);

            var str = obj.TXT2.Strings[8].ToString(obj.FileEncoding).TrimEnd('\0');

            str.Should().Be("Awesome Beach");
            obj.DebugDumpLines();
        }