diff --git a/System.IO.Abstractions/DirectoryInfoBase.cs b/System.IO.Abstractions/DirectoryInfoBase.cs index ddf3323e2..3fef707d4 100644 --- a/System.IO.Abstractions/DirectoryInfoBase.cs +++ b/System.IO.Abstractions/DirectoryInfoBase.cs @@ -27,6 +27,8 @@ public abstract class DirectoryInfoBase : FileSystemInfoBase public static implicit operator DirectoryInfoBase(DirectoryInfo directoryInfo) { + if (directoryInfo == null) + return null; return new DirectoryInfoWrapper(directoryInfo); } } diff --git a/System.IO.Abstractions/System.IO.Abstractions.ncrunchproject b/System.IO.Abstractions/System.IO.Abstractions.ncrunchproject index 575717ac8..59d3df4c1 100644 --- a/System.IO.Abstractions/System.IO.Abstractions.ncrunchproject +++ b/System.IO.Abstractions/System.IO.Abstractions.ncrunchproject @@ -13,8 +13,8 @@ true true 60000 - - - + + + AutoDetect \ No newline at end of file diff --git a/TestingHelpers/TestingHelpers.csproj b/TestingHelpers/TestingHelpers.csproj index 3eb5b66d9..9a9a71ef1 100644 --- a/TestingHelpers/TestingHelpers.csproj +++ b/TestingHelpers/TestingHelpers.csproj @@ -87,12 +87,6 @@ - - - {4D398F3A-0784-4401-93CD-46CD2FBD6B92} - System.IO.Abstractions - - False @@ -113,6 +107,12 @@ + + + {4D398F3A-0784-4401-93CD-46CD2FBD6B92} + System.IO.Abstractions + +