Skip to content

Commit 601544a

Browse files
committed
Another try.
1 parent 457f880 commit 601544a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Hexa.NET.ImGui.Widgets.Tests/FileUtilitiesTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace Hexa.NET.ImGui.Widgets.Tests
33
using Hexa.NET.ImGui.Widgets.Dialogs;
44

55
[TestFixture]
6-
public class FileUtilitiesTests
6+
public unsafe class FileUtilitiesTests
77
{
88
[Test]
99
[Platform(Include = "MacOsX", Reason = "This test is only applicable on macOS.")]
@@ -14,6 +14,8 @@ public void EnumerateEntriesOSXTest()
1414

1515
foreach (var entry in FileUtilities.EnumerateEntriesOSX(testDirectory, "*", SearchOption.TopDirectoryOnly))
1616
{
17+
Console.WriteLine($"Ptr: {(nint)entry.Path.Data}");
18+
Console.WriteLine($"Size: {entry.Path.Size}");
1719
var path = entry.Path.ToString();
1820
string fileName = Path.GetFileName(path);
1921
Assert.Multiple(() =>

Hexa.NET.ImGui.Widgets.Tests/Hexa.NET.ImGui.Widgets.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
@@ -7,6 +7,7 @@
77

88
<IsPackable>false</IsPackable>
99
<IsTestProject>true</IsTestProject>
10+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1011
</PropertyGroup>
1112

1213
<ItemGroup>

0 commit comments

Comments
 (0)