using System.Runtime.CompilerServices; using Xunit; namespace Raylib_cs.Tests; using System.Collections.Generic; public static class BlittableHelper { public static bool IsBlittable() { return !RuntimeHelpers.IsReferenceOrContainsReferences(); } } public class RaylibTests { private unsafe void CheckType() where T : unmanaged { Assert.True(BlittableHelper.IsBlittable()); } [Fact] public void CheckTypes() { CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); CheckType(); } }