diff --git a/src/System.IO.FileSystem/tests/DirectoryInfo/Name.cs b/src/System.IO.FileSystem/tests/DirectoryInfo/Name.cs index d3aa9c4abd2d..6e85097e7fe1 100644 --- a/src/System.IO.FileSystem/tests/DirectoryInfo/Name.cs +++ b/src/System.IO.FileSystem/tests/DirectoryInfo/Name.cs @@ -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() diff --git a/src/System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs b/src/System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs index b92e5201bd65..197e0f33195f 100644 --- a/src/System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs +++ b/src/System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs @@ -130,6 +130,7 @@ public void EmptyFile_ReturnsEmptyArray() Assert.Equal(0, File.ReadAllBytes(path).Length); } +#if !MONODROID [Theory] [PlatformSpecific(TestPlatforms.Linux)] [InlineData("/proc/cmdline")] @@ -173,5 +174,6 @@ public void ProcFs_NotEmpty(string path) { Assert.InRange(File.ReadAllBytes(path).Length, 1, int.MaxValue); } +#endif } }