PKHeX/Tests/PKHeX.Core.Tests/General/MarshalTests.cs
2022-12-01 22:40:11 -08:00

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);
}
}