diff options
author | Alexis Christoforides <alexis@thenull.net> | 2018-11-15 19:47:50 +0300 |
---|---|---|
committer | Alexis Christoforides <alexis@thenull.net> | 2018-12-05 11:44:02 +0300 |
commit | 8715520cdfbc10ec634424870b81262930613a86 (patch) | |
tree | 362550895145687f5f37c503a8353ec26bd59b5d /src/System.IO.FileSystem/tests | |
parent | ec8f9215013917c6a36741a350e3f0e32d3428c7 (diff) |
[corlib] Import FileSystemInfo and family from CoreFX
Diffstat (limited to 'src/System.IO.FileSystem/tests')
25 files changed, 46 insertions, 0 deletions
diff --git a/src/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs b/src/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs index 865cde2ad8..bedd8652d5 100644 --- a/src/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs +++ b/src/System.IO.FileSystem/tests/Base/BaseGetSetTimes.cs @@ -72,6 +72,7 @@ namespace System.IO.Tests [Fact] [PlatformSpecific(TestPlatforms.Linux)] // Windows tested below, and OSX does not currently support millisec granularity + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Seems to require CoreFX DriveInfo")] public void TimesIncludeMillisecondPart_Linux() { T item = GetExistingItem(); @@ -139,6 +140,7 @@ namespace System.IO.Tests [Fact] // OSX does not currently support millisec granularity: use this test as a canary to flag // if this ever changes so we can enable the actual test + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Mono actually supports milliseconds on MacOS")] [PlatformSpecific(TestPlatforms.OSX)] public void TimesIncludeMillisecondPart_OSX() { diff --git a/src/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs b/src/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs index 59d784fbe9..408666e819 100644 --- a/src/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs +++ b/src/System.IO.FileSystem/tests/Base/FileGetSetAttributes.cs @@ -71,6 +71,7 @@ namespace System.IO.Tests InlineData(":bar:$DATA")] [PlatformSpecific(TestPlatforms.Windows)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void GettingAndSettingAttributes_AlternateDataStream_Windows(string streamName) { string path = CreateItem(); diff --git a/src/System.IO.FileSystem/tests/Directory/CreateDirectory.cs b/src/System.IO.FileSystem/tests/Directory/CreateDirectory.cs index 021a05b949..bace978a02 100644 --- a/src/System.IO.FileSystem/tests/Directory/CreateDirectory.cs +++ b/src/System.IO.FileSystem/tests/Directory/CreateDirectory.cs @@ -42,6 +42,7 @@ namespace System.IO.Tests [Theory, MemberData(nameof(PathsWithInvalidCharacters))] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void PathWithInvalidCharactersAsPath_Core(string invalidPath) { if (invalidPath.Contains('\0')) @@ -226,6 +227,7 @@ namespace System.IO.Tests [Theory, MemberData(nameof(PathsWithInvalidColons))] [PlatformSpecific(TestPlatforms.Windows)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void PathsWithInvalidColons_ThrowIOException_Core(string invalidPath) { // You can't actually create a directory with a colon in it. It was a preemptive diff --git a/src/System.IO.FileSystem/tests/Directory/EnumerableAPIs.cs b/src/System.IO.FileSystem/tests/Directory/EnumerableAPIs.cs index 72ccb773c9..99ba0c74b4 100644 --- a/src/System.IO.FileSystem/tests/Directory/EnumerableAPIs.cs +++ b/src/System.IO.FileSystem/tests/Directory/EnumerableAPIs.cs @@ -82,6 +82,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void Clone_Enumerator_Trimmed_SearchPattern() { DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); diff --git a/src/System.IO.FileSystem/tests/Directory/EnumerableTests.cs b/src/System.IO.FileSystem/tests/Directory/EnumerableTests.cs index 7d604b6f1f..44f1870ac1 100644 --- a/src/System.IO.FileSystem/tests/Directory/EnumerableTests.cs +++ b/src/System.IO.FileSystem/tests/Directory/EnumerableTests.cs @@ -34,6 +34,7 @@ namespace System.IO.Tests [Fact] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void EnumerateDirectories_NonBreakingSpace() { DirectoryInfo rootDirectory = Directory.CreateDirectory(GetTestFilePath()); diff --git a/src/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str.cs b/src/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str.cs index 01402a222b..fd0a8df134 100644 --- a/src/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str.cs +++ b/src/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str.cs @@ -232,6 +232,7 @@ namespace System.IO.Tests [Fact] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void InvalidPath_Core() { foreach (char invalid in Path.GetInvalidFileNameChars()) @@ -282,6 +283,7 @@ namespace System.IO.Tests InlineData("\t")] [PlatformSpecific(TestPlatforms.Windows)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void WindowsInvalidCharsPath_Core(string invalid) { Assert.Throws<IOException>(() => GetEntries(invalid)); diff --git a/src/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs b/src/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs index e96881bc46..4a6bfdc7e5 100644 --- a/src/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs +++ b/src/System.IO.FileSystem/tests/Directory/GetFileSystemEntries_str_str.cs @@ -33,6 +33,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void SearchPatternEmpty() { // To avoid OS differences we have decided not to throw an argument exception when empty @@ -364,6 +365,7 @@ namespace System.IO.Tests } [ActiveIssue(20781, TestPlatforms.AnyUnix)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] // Can't do these without extended path support on Windows, UsingNewNormalization filters appropriately [ConditionalTheory(nameof(UsingNewNormalization)), InlineData( diff --git a/src/System.IO.FileSystem/tests/Directory/GetFiles.cs b/src/System.IO.FileSystem/tests/Directory/GetFiles.cs index 7a8a36bde6..6500dff40b 100644 --- a/src/System.IO.FileSystem/tests/Directory/GetFiles.cs +++ b/src/System.IO.FileSystem/tests/Directory/GetFiles.cs @@ -128,6 +128,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void CharacterTests() { //bug #417100 - not sure if this hard coded approach is safe in all 9x platforms!!! diff --git a/src/System.IO.FileSystem/tests/Directory/GetLogicalDrives.cs b/src/System.IO.FileSystem/tests/Directory/GetLogicalDrives.cs index 8c147c11e9..86f1a6872d 100644 --- a/src/System.IO.FileSystem/tests/Directory/GetLogicalDrives.cs +++ b/src/System.IO.FileSystem/tests/Directory/GetLogicalDrives.cs @@ -12,6 +12,7 @@ namespace System.IO.Tests { [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] // Valid drive strings on Unix + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX DriveInfo not yet imported")] public void GetsValidDriveStrings_Unix() { string[] drives = Directory.GetLogicalDrives(); diff --git a/src/System.IO.FileSystem/tests/DirectoryInfo/Create.cs b/src/System.IO.FileSystem/tests/DirectoryInfo/Create.cs index fb2430fd29..45c2a637d0 100644 --- a/src/System.IO.FileSystem/tests/DirectoryInfo/Create.cs +++ b/src/System.IO.FileSystem/tests/DirectoryInfo/Create.cs @@ -43,6 +43,7 @@ namespace System.IO.Tests [InlineData(".")] [InlineData("............")] [PlatformSpecific(TestPlatforms.Windows)] // Windows-invalid extensions are removed + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void WindowsInvalidExtensionsAreRemoved(string extension) { string testDir = GetTestFilePath(); @@ -54,6 +55,7 @@ namespace System.IO.Tests [InlineData(".s", ".")] [InlineData(".s", ".s....")] [PlatformSpecific(TestPlatforms.Windows)] // Trailing dots in extension are removed + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void WindowsCurtailTrailingDots(string extension, string trailing) { string testDir = GetTestFilePath(); diff --git a/src/System.IO.FileSystem/tests/DirectoryInfo/CreateSubdirectory.cs b/src/System.IO.FileSystem/tests/DirectoryInfo/CreateSubdirectory.cs index 75af106c41..d87fc7f142 100644 --- a/src/System.IO.FileSystem/tests/DirectoryInfo/CreateSubdirectory.cs +++ b/src/System.IO.FileSystem/tests/DirectoryInfo/CreateSubdirectory.cs @@ -151,6 +151,7 @@ namespace System.IO.Tests MemberData(nameof(ControlWhiteSpace))] [PlatformSpecific(TestPlatforms.Windows)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void WindowsControlWhiteSpace_Core(string component) { Assert.Throws<IOException>(() => new DirectoryInfo(TestDirectory).CreateSubdirectory(component)); diff --git a/src/System.IO.FileSystem/tests/DirectoryInfo/ToString.cs b/src/System.IO.FileSystem/tests/DirectoryInfo/ToString.cs index de2ea39621..c22986201e 100644 --- a/src/System.IO.FileSystem/tests/DirectoryInfo/ToString.cs +++ b/src/System.IO.FileSystem/tests/DirectoryInfo/ToString.cs @@ -39,6 +39,7 @@ namespace System.IO.Tests [Fact] [SkipOnTargetFramework(TargetFrameworkMonikers.Netcoreapp)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] [PlatformSpecific(TestPlatforms.Windows)] // Drive letter only public void DriveOnlyReturnsPeriod_Windows_Desktop() { diff --git a/src/System.IO.FileSystem/tests/File/Copy.cs b/src/System.IO.FileSystem/tests/File/Copy.cs index 1caca2aae1..81338ceb91 100644 --- a/src/System.IO.FileSystem/tests/File/Copy.cs +++ b/src/System.IO.FileSystem/tests/File/Copy.cs @@ -32,6 +32,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void CopyOntoDirectory() { string testFile = GetTestFilePath(); @@ -48,6 +49,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void NonExistentPath() { FileInfo testFile = new FileInfo(GetTestFilePath()); @@ -70,6 +72,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX File not yet imported")] public void ShortenLongPath() { string testFileSource = GetTestFilePath(); @@ -190,6 +193,7 @@ namespace System.IO.Tests InlineData("\t")] [PlatformSpecific(TestPlatforms.Windows)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX File not yet imported")] public void WindowsInvalidCharsPath_Core(string invalid) { string testFile = GetTestFilePath(); @@ -225,6 +229,7 @@ namespace System.IO.Tests InlineData("::$DATA", ":bar:$DATA")] [PlatformSpecific(TestPlatforms.Windows)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX File not yet imported")] public void WindowsAlternateDataStream(string defaultStream, string alternateStream) { DirectoryInfo testDirectory = Directory.CreateDirectory(GetTestFilePath()); @@ -323,6 +328,7 @@ namespace System.IO.Tests InlineData("::$DATA", ":bar:$DATA")] [PlatformSpecific(TestPlatforms.Windows)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX File not yet imported")] public void WindowsAlternateDataStreamOverwrite(string defaultStream, string alternateStream) { DirectoryInfo testDirectory = Directory.CreateDirectory(GetTestFilePath()); diff --git a/src/System.IO.FileSystem/tests/File/Delete.cs b/src/System.IO.FileSystem/tests/File/Delete.cs index 1dd95f6040..39fe6a7779 100644 --- a/src/System.IO.FileSystem/tests/File/Delete.cs +++ b/src/System.IO.FileSystem/tests/File/Delete.cs @@ -113,6 +113,7 @@ namespace System.IO.Tests [Fact] [PlatformSpecific(TestPlatforms.AnyUnix)] // Deleting non-existent path doesn't throw + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX File not yet imported")] public void Unix_NonExistentPath_Nop() { Delete(Path.Combine(TestDirectory, GetTestFileName(), "C")); @@ -199,6 +200,7 @@ namespace System.IO.Tests InlineData(":bar:$DATA")] [PlatformSpecific(TestPlatforms.Windows)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX File not yet imported")] public void WindowsDeleteAlternateDataStream(string streamName) { FileInfo testFile = Create(GetTestFilePath()); diff --git a/src/System.IO.FileSystem/tests/File/Move.cs b/src/System.IO.FileSystem/tests/File/Move.cs index 304094a999..e9da920edd 100644 --- a/src/System.IO.FileSystem/tests/File/Move.cs +++ b/src/System.IO.FileSystem/tests/File/Move.cs @@ -56,6 +56,7 @@ namespace System.IO.Tests [Theory, MemberData(nameof(PathsWithInvalidCharacters))] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void PathWithIllegalCharacters_Core(string invalidPath) { FileInfo testFile = new FileInfo(GetTestFilePath()); diff --git a/src/System.IO.FileSystem/tests/File/ReadWriteAllLines.cs b/src/System.IO.FileSystem/tests/File/ReadWriteAllLines.cs index f86f6b1a40..1705fabbb8 100644 --- a/src/System.IO.FileSystem/tests/File/ReadWriteAllLines.cs +++ b/src/System.IO.FileSystem/tests/File/ReadWriteAllLines.cs @@ -38,6 +38,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX File not yet imported")] public void NullLines() { string path = GetTestFilePath(); @@ -128,6 +129,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX File not yet imported")] public void DisposingEnumeratorClosesFile() { string path = GetTestFilePath(); @@ -226,6 +228,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX File not yet imported")] public void NullLines() { string path = GetTestFilePath(); @@ -316,6 +319,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void DisposingEnumeratorClosesFile() { string path = GetTestFilePath(); diff --git a/src/System.IO.FileSystem/tests/FileInfo/Extension.cs b/src/System.IO.FileSystem/tests/FileInfo/Extension.cs index 5137924e91..c29afc7112 100644 --- a/src/System.IO.FileSystem/tests/FileInfo/Extension.cs +++ b/src/System.IO.FileSystem/tests/FileInfo/Extension.cs @@ -25,6 +25,7 @@ namespace System.IO.Tests [InlineData(".")] [InlineData("............")] [PlatformSpecific(TestPlatforms.Windows)] // Windows-invalid extensions should be removed + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void WindowsInvalidExtensionsAreRemoved(string extension) { string testFile = GetTestFilePath(); @@ -36,6 +37,7 @@ namespace System.IO.Tests [InlineData(".s", ".")] [InlineData(".s", ".s....")] [PlatformSpecific(TestPlatforms.Windows)] // Trailing dots in extension are removed + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void WindowsCurtailTrailingDots(string extension, string trailing) { string testFile = GetTestFilePath(); diff --git a/src/System.IO.FileSystem/tests/FileInfo/IsReadOnly.cs b/src/System.IO.FileSystem/tests/FileInfo/IsReadOnly.cs index 2833dc6a09..69c238fe9b 100644 --- a/src/System.IO.FileSystem/tests/FileInfo/IsReadOnly.cs +++ b/src/System.IO.FileSystem/tests/FileInfo/IsReadOnly.cs @@ -23,6 +23,7 @@ namespace System.IO.Tests } [Theory, MemberData(nameof(TrailingCharacters))] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")] public void ReadOnly(char trailingChar) { string path = GetTestFilePath() + trailingChar; diff --git a/src/System.IO.FileSystem/tests/FileStream/ctor_sfh_fa.cs b/src/System.IO.FileSystem/tests/FileStream/ctor_sfh_fa.cs index 3f319f8946..a63b2173f7 100644 --- a/src/System.IO.FileSystem/tests/FileStream/ctor_sfh_fa.cs +++ b/src/System.IO.FileSystem/tests/FileStream/ctor_sfh_fa.cs @@ -108,6 +108,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void InconsistentFileAccessThrows() { string fileName = GetTestFilePath(); diff --git a/src/System.IO.FileSystem/tests/FileStream/ctor_sfh_fa_buffer_async.cs b/src/System.IO.FileSystem/tests/FileStream/ctor_sfh_fa_buffer_async.cs index 8529d1e764..781b47158c 100644 --- a/src/System.IO.FileSystem/tests/FileStream/ctor_sfh_fa_buffer_async.cs +++ b/src/System.IO.FileSystem/tests/FileStream/ctor_sfh_fa_buffer_async.cs @@ -31,6 +31,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void UnmatchedAsyncThrows() { using (FileStream fs = new FileStream(GetTestFilePath(), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite | FileShare.Delete, 4096, true)) diff --git a/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm.cs b/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm.cs index 45791fe767..7dd5923602 100644 --- a/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm.cs +++ b/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm.cs @@ -38,6 +38,7 @@ namespace System.IO.Tests } [Theory, MemberData(nameof(TrailingCharacters))] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void MissingFile_ThrowsFileNotFound(char trailingChar) { string path = GetTestFilePath() + trailingChar; diff --git a/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs.cs b/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs.cs index c3e0adfe30..da44bb8fd3 100644 --- a/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs.cs +++ b/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs.cs @@ -122,6 +122,7 @@ namespace System.IO.Tests [Theory] [InlineData(FileMode.Create)] [InlineData(FileMode.Truncate)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void NoTruncateOnFileShareViolation(FileMode fileMode) { string fileName = GetTestFilePath(); diff --git a/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs.delete.cs b/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs.delete.cs index dcd4978f57..2bc83bda53 100644 --- a/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs.delete.cs +++ b/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs.delete.cs @@ -12,6 +12,7 @@ namespace System.IO.Tests public partial class FileStream_ctor_str_fm_fa_fs { [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void FileShareDeleteNew() { string fileName = GetTestFilePath(); @@ -43,6 +44,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void FileShareDeleteExisting() { // create the file @@ -87,6 +89,7 @@ namespace System.IO.Tests [Fact] [PlatformSpecific(TestPlatforms.Windows)] // file sharing restriction limitations on Unix + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void FileShareDeleteExistingMultipleClients() { // create the file diff --git a/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs_buffer_fo.cs b/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs_buffer_fo.cs index 596144845e..aa17afb0e2 100644 --- a/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs_buffer_fo.cs +++ b/src/System.IO.FileSystem/tests/FileStream/ctor_str_fm_fa_fs_buffer_fo.cs @@ -21,6 +21,7 @@ namespace System.IO.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void InvalidFileOptionsThrow() { AssertExtensions.Throws<ArgumentOutOfRangeException>("options", () => CreateFileStream(GetTestFilePath(), FileMode.Create, FileAccess.ReadWrite, FileShare.Read, c_DefaultBufferSize, ~FileOptions.None)); @@ -68,6 +69,7 @@ namespace System.IO.Tests [InlineData(FileOptions.Encrypted)] [InlineData(FileOptions.Asynchronous | FileOptions.Encrypted)] [InlineData(FileOptions.Asynchronous | FileOptions.DeleteOnClose | FileOptions.Encrypted | FileOptions.RandomAccess | FileOptions.SequentialScan | FileOptions.WriteThrough)] + [SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")] public void ValidFileOptions_Encrypted(FileOptions option) { try { ValidFileOptions(option); } diff --git a/src/System.IO.FileSystem/tests/PortedCommon/ReparsePointUtilities.cs b/src/System.IO.FileSystem/tests/PortedCommon/ReparsePointUtilities.cs index d9bf124acf..81fa1c19e6 100644 --- a/src/System.IO.FileSystem/tests/PortedCommon/ReparsePointUtilities.cs +++ b/src/System.IO.FileSystem/tests/PortedCommon/ReparsePointUtilities.cs @@ -32,6 +32,9 @@ public static class MountHelper /// <summary>Creates a symbolic link using command line tools</summary> /// <param name="linkPath">The existing file</param> /// <param name="targetPath"></param> +#if MONO && MOBILE// No external process support + public static bool CreateSymbolicLink(string linkpath, string targetPath, bool isDirectory) => throw new PlatformNotSupportedException(); +#else public static bool CreateSymbolicLink(string linkPath, string targetPath, bool isDirectory) { Process symLinkProcess = new Process(); @@ -59,6 +62,7 @@ public static class MountHelper return false; } } +#endif public static void Mount(String volumeName, String mountPoint) { |