mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
20 lines
503 B
C#
20 lines
503 B
C#
|
using LibHac.Fs;
|
|||
|
using Xunit;
|
|||
|
|
|||
|
namespace LibHac.Tests.Fs.IFileSystemTestBase
|
|||
|
{
|
|||
|
public abstract partial class IFileSystemTests
|
|||
|
{
|
|||
|
[Fact]
|
|||
|
public void OpenDirectory_PathIsFile_ReturnsPathNotFound()
|
|||
|
{
|
|||
|
IFileSystem fs = CreateFileSystem();
|
|||
|
|
|||
|
fs.CreateFile("/file", 0, CreateFileOptions.None);
|
|||
|
|
|||
|
Result rc = fs.OpenDirectory(out _, "/file", OpenDirectoryMode.All);
|
|||
|
|
|||
|
Assert.Equal(ResultFs.PathNotFound.Value, rc);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|