diff --git a/Imms/ExtraFunctional/ExtraFunctional/Option.fs b/Imms/ExtraFunctional/ExtraFunctional/Option.fs index fe4b22a..3af9160 100644 --- a/Imms/ExtraFunctional/ExtraFunctional/Option.fs +++ b/Imms/ExtraFunctional/ExtraFunctional/Option.fs @@ -2,7 +2,7 @@ module Option = let orValue (v : 'v) = function Some u -> u | None -> v let orMaybe (v : 'v option) = function Some u -> Some u | None -> v - let asNull = Option.toObj + let asNull (v : 'v option) = if v.IsNone then null else v.Value let cast<'a,'b> (opt : 'a option) : 'b option = opt |> Option.map (fun a -> a :> obj :?> 'b) [] diff --git a/Imms/Imms.FSharp/Imms.FSharp.fsproj b/Imms/Imms.FSharp/Imms.FSharp.fsproj index 40db670..c812480 100644 --- a/Imms/Imms.FSharp/Imms.FSharp.fsproj +++ b/Imms/Imms.FSharp/Imms.FSharp.fsproj @@ -85,10 +85,6 @@ - - ..\..\..\packages\FSharp.Core.4.0.0.1\lib\net40\FSharp.Core.dll - True - diff --git a/Imms/Imms.Tests.Integrity/App.config b/Imms/Imms.Tests.Integrity/App.config index 3fd002c..e4902b5 100644 --- a/Imms/Imms.Tests.Integrity/App.config +++ b/Imms/Imms.Tests.Integrity/App.config @@ -7,7 +7,7 @@ - + diff --git a/Imms/Imms.Tests.Integrity/Imms.Tests.Integrity.fsproj b/Imms/Imms.Tests.Integrity/Imms.Tests.Integrity.fsproj index aa51422..047f7c0 100644 --- a/Imms/Imms.Tests.Integrity/Imms.Tests.Integrity.fsproj +++ b/Imms/Imms.Tests.Integrity/Imms.Tests.Integrity.fsproj @@ -1,5 +1,6 @@  + Debug @@ -16,6 +17,8 @@ ..\ true + + true @@ -42,8 +45,12 @@ true - - ..\..\..\packages\FSharp.Core.4.0.0.1\lib\net40\FSharp.Core.dll + + ..\packages\FsCheck.2.6.0\lib\net45\FsCheck.dll + True + + + ..\packages\FsCheck.Xunit.2.6.0\lib\net45\FsCheck.Xunit.dll True @@ -54,6 +61,18 @@ + + ..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll + True + + + ..\packages\xunit.extensibility.core.2.1.0\lib\portable-net45+win8+wp8+wpa81\xunit.core.dll + True + + + ..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll + True + @@ -112,6 +131,7 @@ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. +