mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
3139f6900e
Change GetFileAttributes method signature
26 lines
No EOL
695 B
C#
26 lines
No EOL
695 B
C#
using LibHac.Fs;
|
|
using Xunit;
|
|
|
|
namespace LibHac.Tests.Fs.IFileSystemTestBase
|
|
{
|
|
public abstract partial class IFileSystemTests
|
|
{
|
|
[Fact]
|
|
public void SetSize_FileSizeModified()
|
|
{
|
|
IFileSystem fs = CreateFileSystem();
|
|
fs.CreateFile("/file", 0, CreateFileOptions.None);
|
|
|
|
fs.OpenFile(out IFile file, "/file", OpenMode.All);
|
|
Result rc = file.SetSize(54321);
|
|
file.Dispose();
|
|
|
|
fs.OpenFile(out file, "/file", OpenMode.All);
|
|
file.GetSize(out long fileSize);
|
|
file.Dispose();
|
|
|
|
Assert.True(rc.IsSuccess());
|
|
Assert.Equal(54321, fileSize);
|
|
}
|
|
}
|
|
} |