mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-30 15:59:13 +00:00
8bf618008a
Won't work on bigendian architecture for non-byte fields, so just do it manually.
16 lines
322 B
C#
16 lines
322 B
C#
using System.Runtime.InteropServices;
|
|
using FluentAssertions;
|
|
using PKHeX.Core;
|
|
using Xunit;
|
|
|
|
namespace PKHeX.Tests.General;
|
|
|
|
public class MarshalTests
|
|
{
|
|
[Fact]
|
|
public void MarshalSize()
|
|
{
|
|
Marshal.SizeOf(typeof(NPCLock)).Should().Be(8);
|
|
Marshal.SizeOf(typeof(PIDIV)).Should().Be(8);
|
|
}
|
|
}
|