Skip to content

Commit

Permalink
Another try.
Browse files Browse the repository at this point in the history
  • Loading branch information
JunaMeinhold committed Nov 8, 2024
1 parent 457f880 commit 601544a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Hexa.NET.ImGui.Widgets.Tests/FileUtilitiesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.")]
Expand All @@ -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(() =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand All @@ -7,6 +7,7 @@

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 601544a

Please sign in to comment.