mirror of
https://github.com/kwsch/NHSE.git
synced 2026-03-21 17:24:30 -05:00
Updates the Field Item Editor to render layers based on the entire map, and the per-patch positioning of each layer. Import/export will gracefully handle upgrade/downgrade, and viewport import/export will gracefully update tiles rather than a per-acre basis. Performance has also been slightly improved; no allocation is done anymore when updating the image.
18 lines
402 B
C#
18 lines
402 B
C#
using FluentAssertions;
|
|
using NHSE.Parsing;
|
|
using Xunit;
|
|
|
|
namespace NHSE.Tests;
|
|
|
|
public static class EnumHashTests
|
|
{
|
|
[Theory]
|
|
[InlineData("Base", 0x6086515F)]
|
|
[InlineData("River", 0x3422482F)]
|
|
[InlineData("RoadStone", 0x13011867)]
|
|
public static void ChecksumMatches(string str, uint val)
|
|
{
|
|
var computed = CRC32.Compute(str);
|
|
computed.Should().Be(val);
|
|
}
|
|
} |