Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Disable some more new System.IO tests on monodroid
Browse files Browse the repository at this point in the history
  • Loading branch information
alexischr committed Apr 23, 2019
1 parent 2029ab4 commit 72f7d76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/System.IO.FileSystem/tests/DirectoryInfo/Name.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ namespace System.IO.Tests
{
public class DirectoryInfo_Name : FileSystemTest
{
#if !MONODROID
[Fact]
public void CurrentDirectory()
{
var info = new DirectoryInfo(".");
Assert.Equal(Path.GetFileName(Directory.GetCurrentDirectory()), info.Name);
}
#endif

[Fact]
public void UNCShareName()
Expand Down
2 changes: 2 additions & 0 deletions src/System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public void EmptyFile_ReturnsEmptyArray()
Assert.Equal(0, File.ReadAllBytes(path).Length);
}

#if !MONODROID
[Theory]
[PlatformSpecific(TestPlatforms.Linux)]
[InlineData("/proc/cmdline")]
Expand Down Expand Up @@ -173,5 +174,6 @@ public void ProcFs_NotEmpty(string path)
{
Assert.InRange(File.ReadAllBytes(path).Length, 1, int.MaxValue);
}
#endif
}
}

0 comments on commit 72f7d76

Please sign in to comment.