From faca96907228e5aea0e6c2f6b7dd324731ccd856 Mon Sep 17 00:00:00 2001 From: Troy Dai Date: Thu, 26 Mar 2015 23:08:10 -0700 Subject: [PATCH] Remove the workaround for CoreCLR issue #616 Reference: https://github.com/aspnet/FileSystem/pull/58 --- .../Abstractions/DirectoryInfoWrapper.cs | 8 +------- .../FunctionalTests.cs | 9 --------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/Microsoft.Framework.FileSystemGlobbing/Abstractions/DirectoryInfoWrapper.cs b/src/Microsoft.Framework.FileSystemGlobbing/Abstractions/DirectoryInfoWrapper.cs index 1daff6c..0f7d706 100644 --- a/src/Microsoft.Framework.FileSystemGlobbing/Abstractions/DirectoryInfoWrapper.cs +++ b/src/Microsoft.Framework.FileSystemGlobbing/Abstractions/DirectoryInfoWrapper.cs @@ -14,13 +14,7 @@ public class DirectoryInfoWrapper : DirectoryInfoBase public DirectoryInfoWrapper(DirectoryInfo directoryInfo, bool isParentPath = false) { - // Work around for https://github.com/dotnet/corefx/issues/616: DirectoryInfo.Exists returns - // incorrect results when it is cast from FileSystemInfo. - // - // Once it is fixed us following line to replace the assignment to _directoryInfo - // _directoryInfo = directoryInfo.FullName; - _directoryInfo = new DirectoryInfo(directoryInfo.FullName); - + _directoryInfo = directoryInfo; _isParentPath = isParentPath; } diff --git a/test/Microsoft.Framework.FileSystemGlobbing.Tests/FunctionalTests.cs b/test/Microsoft.Framework.FileSystemGlobbing.Tests/FunctionalTests.cs index ac39ae1..335fe03 100644 --- a/test/Microsoft.Framework.FileSystemGlobbing.Tests/FunctionalTests.cs +++ b/test/Microsoft.Framework.FileSystemGlobbing.Tests/FunctionalTests.cs @@ -226,15 +226,6 @@ public void SingleFileAndRecursive() "src/project2/source1.cs"); } -#if DNXCORE50 - [ConditionalFact] - [RunWhenWhenDirectoryInfoWorks] - public void WarningTest() - { - - } -#endif - private DisposableFileSystem CreateContext() { var context = new DisposableFileSystem();