diff --git a/Hexa.NET.ImGui.Widgets.Tests/FileUtilitiesTests.cs b/Hexa.NET.ImGui.Widgets.Tests/FileUtilitiesTests.cs index cdc5d71..42f1652 100644 --- a/Hexa.NET.ImGui.Widgets.Tests/FileUtilitiesTests.cs +++ b/Hexa.NET.ImGui.Widgets.Tests/FileUtilitiesTests.cs @@ -3,7 +3,7 @@ namespace Hexa.NET.ImGui.Widgets.Tests using Hexa.NET.ImGui.Widgets.Dialogs; [TestFixture] - public class FileUtilitiesTests + public unsafe class FileUtilitiesTests { [Test] [Platform(Include = "MacOsX", Reason = "This test is only applicable on macOS.")] @@ -14,6 +14,8 @@ public void EnumerateEntriesOSXTest() foreach (var entry in FileUtilities.EnumerateEntriesOSX(testDirectory, "*", SearchOption.TopDirectoryOnly)) { + Console.WriteLine($"Ptr: {(nint)entry.Path.Data}"); + Console.WriteLine($"Size: {entry.Path.Size}"); var path = entry.Path.ToString(); string fileName = Path.GetFileName(path); Assert.Multiple(() => diff --git a/Hexa.NET.ImGui.Widgets.Tests/Hexa.NET.ImGui.Widgets.Tests.csproj b/Hexa.NET.ImGui.Widgets.Tests/Hexa.NET.ImGui.Widgets.Tests.csproj index 088a9eb..9786a8d 100644 --- a/Hexa.NET.ImGui.Widgets.Tests/Hexa.NET.ImGui.Widgets.Tests.csproj +++ b/Hexa.NET.ImGui.Widgets.Tests/Hexa.NET.ImGui.Widgets.Tests.csproj @@ -1,4 +1,4 @@ -<Project Sdk="Microsoft.NET.Sdk"> +<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> @@ -7,6 +7,7 @@ <IsPackable>false</IsPackable> <IsTestProject>true</IsTestProject> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> </PropertyGroup> <ItemGroup>