mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
21 lines
No EOL
508 B
C#
21 lines
No EOL
508 B
C#
using LibHac.Common;
|
|
using LibHac.Fs;
|
|
using Xunit;
|
|
|
|
namespace LibHac.Tests.Fs.IFileSystemTestBase
|
|
{
|
|
public abstract partial class IFileSystemTests
|
|
{
|
|
[Fact]
|
|
public void OpenFile_PathIsDirectory_ReturnsPathNotFound()
|
|
{
|
|
IFileSystem fs = CreateFileSystem();
|
|
|
|
fs.CreateDirectory("/dir".ToU8Span());
|
|
|
|
Result rc = fs.OpenFile(out _, "/dir".ToU8Span(), OpenMode.All);
|
|
|
|
Assert.Equal(ResultFs.PathNotFound.Value, rc);
|
|
}
|
|
}
|
|
} |