mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-19 15:07:24 -05:00
20 lines
439 B
C#
20 lines
439 B
C#
using FluentAssertions;
|
|
using NHSE.Parsing;
|
|
using Xunit;
|
|
|
|
namespace NHSE.Tests
|
|
{
|
|
public class EnumHashTests
|
|
{
|
|
[Theory]
|
|
[InlineData("Base", 0x6086515F)]
|
|
[InlineData("River", 0x3422482F)]
|
|
[InlineData("RoadStone", 0x13011867)]
|
|
public void ChecksumMatches(string str, uint val)
|
|
{
|
|
var computed = CRC32.Compute(str);
|
|
computed.Should().Be(val);
|
|
}
|
|
}
|
|
}
|