mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-03 17:29:13 +00:00
21 lines
655 B
C#
21 lines
655 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);
|
|
Marshal.SizeOf(typeof(MoveResult)).Should().Be(8);
|
|
Marshal.SizeOf(typeof(EvolutionMethod)).Should().Be(8);
|
|
Marshal.SizeOf(typeof(Moveset)).Should().Be(8);
|
|
Marshal.SizeOf(typeof(IndividualValueSet)).Should().BeLessOrEqualTo(8);
|
|
Marshal.SizeOf(typeof(GenerateParam9)).Should().BeLessOrEqualTo(16);
|
|
}
|
|
}
|