NHSE/NHSE.Tests/MSBTTests.cs
Kurt 6150d9e03d Localize villager names
ezpz

throw in the special villager names at the end, cuz why not
2020-04-23 09:33:42 -07:00

34 lines
927 B
C#

using FluentAssertions;
using NHSE.Parsing;
using NHSE.Tests.Properties;
using Xunit;
namespace NHSE.Tests
{
public static class MSBTTests
{
[Fact]
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();
}
[Fact]
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();
}
}
}