Skip to content

Commit

Permalink
Merge pull request #39 from JanBessai/Choice
Browse files Browse the repository at this point in the history
Test which of a given Choice<...> constructors was selected
  • Loading branch information
dmohl committed Jul 29, 2014
2 parents b152688 + 20ae88d commit c1259c6
Show file tree
Hide file tree
Showing 70 changed files with 773 additions and 68 deletions.
10 changes: 5 additions & 5 deletions NuGet/FsUnit.MbUnit/FsUnit.MbUnit.Sample.nuspec
Expand Up @@ -16,9 +16,9 @@
<tags>F# fsharp MbUnit FsUnit</tags>
</metadata>
<files>
<file src="Content\*.pp" target="Content" />
<file src="Lib\Net20\*.*" target="Lib\Net20" />
<file src="Lib\Net40\*.*" target="Lib\Net40" />
<file src="Tools\*.*" target="tools" />
<file src="content\*.pp" target="content" />
<file src="lib\net20\*.*" target="lib\net20" />
<file src="lib\net40\*.*" target="lib\net40" />
<file src="tools\*.*" target="tools" />
</files>
</package>
</package>
8 changes: 4 additions & 4 deletions NuGet/FsUnit.MbUnit/FsUnit.MbUnit.nuspec
Expand Up @@ -16,8 +16,8 @@
<tags>F# fsharp MbUnit FsUnit</tags>
</metadata>
<files>
<file src="Lib\Net20\*.*" target="Lib\Net20" />
<file src="Lib\Net40\*.*" target="Lib\Net40" />
<file src="Tools\*.*" target="tools" />
<file src="lib\net20\*.*" target="lib\net20" />
<file src="lib\net40\*.*" target="lib\net40" />
<file src="tools\*.*" target="tools" />
</files>
</package>
</package>
Binary file removed NuGet/FsUnit.MbUnit/Lib/Net40/FsUnit.MbUnit.dll
Binary file not shown.
Binary file not shown.
81 changes: 81 additions & 0 deletions NuGet/FsUnit.MbUnit/lib/net20/FsUnit.MbUnit.XML

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added NuGet/FsUnit.MbUnit/lib/net20/FsUnit.MbUnit.dll
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions NuGet/FsUnit.MsTest/Fs30Unit.MsTest.Sample.nuspec
Expand Up @@ -13,8 +13,8 @@
<tags>F# fsharp MsTest FsUnit</tags>
</metadata>
<files>
<file src="Content\*.pp" target="Content" />
<file src="Lib\Net40\*.*" target="Lib\Net40" />
<file src="Tools\*.*" target="tools" />
<file src="content\*.pp" target="content" />
<file src="lib\net40\*.*" target="lib\net40" />
<file src="tools\*.*" target="tools" />
</files>
</package>
</package>
6 changes: 3 additions & 3 deletions NuGet/FsUnit.MsTest/Fs30Unit.MsTest.nuspec
Expand Up @@ -13,7 +13,7 @@
<tags>F# fsharp MsTest FsUnit</tags>
</metadata>
<files>
<file src="Lib\Net40\*.*" target="Lib\Net40" />
<file src="Tools\*.*" target="tools" />
<file src="lib\net40\*.*" target="lib\net40" />
<file src="tools\*.*" target="tools" />
</files>
</package>
</package>
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions NuGet/FsUnit.NUnit/FsUnit.Sample.nuspec
Expand Up @@ -16,9 +16,9 @@
<tags>F# fsharp NUnit FsUnit</tags>
</metadata>
<files>
<file src="Content\*.pp" target="Content" />
<file src="Lib\Net20\*.*" target="Lib\Net20" />
<file src="Lib\Net40\*.*" target="Lib\Net40" />
<file src="Tools\*.*" target="tools" />
<file src="content\*.pp" target="content" />
<file src="lib\net20\*.*" target="lib\net20" />
<file src="lib\net40\*.*" target="lib\net40" />
<file src="tools\*.*" target="tools" />
</files>
</package>
6 changes: 3 additions & 3 deletions NuGet/FsUnit.NUnit/FsUnit.nuspec
Expand Up @@ -16,8 +16,8 @@
<tags>F# fsharp NUnit FsUnit</tags>
</metadata>
<files>
<file src="Lib\Net20\*.*" target="Lib\Net20" />
<file src="Lib\Net40\*.*" target="Lib\Net40" />
<file src="Tools\*.*" target="tools" />
<file src="lib\net20\*.*" target="lib\net20" />
<file src="lib\net40\*.*" target="lib\net40" />
<file src="tools\*.*" target="tools" />
</files>
</package>
Binary file removed NuGet/FsUnit.NUnit/Lib/Net40/FsUnit.NUnit.dll
Binary file not shown.
Binary file added NuGet/FsUnit.NUnit/lib/net20/FsUnit.NUnit.dll
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>FsUnit.xUnit.Sample</id>
<id>FsUnit.Xunit.Sample</id>
<version>1.3.0.1</version>
<dependencies>
<group targetFramework="net20">
Expand All @@ -24,9 +24,9 @@
<tags>F# fsharp xUnit FsUnit</tags>
</metadata>
<files>
<file src="Content\*.pp" target="Content" />
<file src="Lib\Net20\*.*" target="Lib\net20" />
<file src="Lib\Net40\*.*" target="Lib\net40" />
<file src="Tools\*.*" target="tools" />
<file src="content\*.pp" target="content" />
<file src="lib\net20\*.*" target="lib\net20" />
<file src="lib\net40\*.*" target="lib\net40" />
<file src="tools\*.*" target="tools" />
</files>
</package>
</package>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>FsUnit.xUnit</id>
<id>FsUnit.Xunit</id>
<version>1.3.0.1</version>
<dependencies>
<group targetFramework="net20">
Expand All @@ -24,8 +24,8 @@
<tags>F# fsharp xUnit FsUnit</tags>
</metadata>
<files>
<file src="Lib\Net20\*.*" target="Lib\net20" />
<file src="Lib\Net40\*.*" target="Lib\net40" />
<file src="Tools\*.*" target="tools" />
<file src="lib\net20\*.*" target="lib\net20" />
<file src="lib\net40\*.*" target="lib\net40" />
<file src="tools\*.*" target="tools" />
</files>
</package>
</package>
9 changes: 9 additions & 0 deletions NuGet/FsUnit.Xunit/build.bat
@@ -0,0 +1,9 @@
c:\nuget\nuget.exe pack .\FsUnit.Xunit.nuspec
md c:\nuget\FsUnit.Xunit\
copy *.nupkg c:\nuget\FsUnit.Xunit\ /Y

c:\nuget\nuget.exe pack .\FsUnit.Xunit.Sample.nuspec
md c:\nuget\FsUnit.Xunit.Sample\
copy *.nupkg c:\nuget\FsUnit.Xunit.Sample\ /Y

pause
Binary file not shown.
90 changes: 90 additions & 0 deletions NuGet/FsUnit.Xunit/lib/net20/FsUnit.Xunit.XML

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added NuGet/FsUnit.Xunit/lib/net20/FsUnit.Xunit.dll
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file removed NuGet/FsUnit.xUnit/Lib/NET40/FsUnit.Xunit.dll
Binary file not shown.
9 changes: 0 additions & 9 deletions NuGet/FsUnit.xUnit/build.bat

This file was deleted.

10 changes: 5 additions & 5 deletions NuGet/buildAll.bat
Expand Up @@ -16,10 +16,10 @@ md c:\nuget\FsUnit\
c:\nuget\nuget.exe pack .\FsUnit.NUnit\FsUnit.Sample.nuspec
md c:\nuget\FsUnit.Sample\

c:\nuget\nuget.exe pack .\FsUnit.xUnit\FsUnit.xUnit.nuspec
md c:\nuget\FsUnit.xUnit\
c:\nuget\nuget.exe pack .\FsUnit.Xunit\FsUnit.Xunit.nuspec
md c:\nuget\FsUnit.Xunit\

c:\nuget\nuget.exe pack .\FsUnit.xUnit\FsUnit.xUnit.Sample.nuspec
md c:\nuget\FsUnit.xUnit.Sample\
c:\nuget\nuget.exe pack .\FsUnit.Xunit\FsUnit.Xunit.Sample.nuspec
md c:\nuget\FsUnit.Xunit.Sample\

pause
pause
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -97,6 +97,8 @@ anObj |> should not' (be sameAs otherObj)
1 |> should not' (be ofExactType<obj>)
Choice<int, string>.Choice1Of2(42) |> should be (choice 1)
[] |> should be Empty // NUnit only
[1] |> should not' (be Empty) // NUnit only
Expand All @@ -120,7 +122,7 @@ Visual Studio 11 Support
=======

Visual Studio 11 support is available for all 4 of the targetted testing frameworks. FsUnit.MsTest is supported only in VS11 and no additional steps are required to use it.
FsUnit for NUnit, FsUnit.MbUnit, and FsUnit.xUnit target F# 2.0 as well as F# 3.0. Because of this, a few additional steps are required
FsUnit for NUnit, FsUnit.MbUnit, and FsUnit.Xunit target F# 2.0 as well as F# 3.0. Because of this, a few additional steps are required
in order to use these libraries in VS11. After installing one of these packages, add an `App.config` file to the project (if one doesn't already exist).
Build the project and then run the command "Add-BindingRedirect projectname" (where projectname is the name of your test project) in the NuGet
Package Manager Console. This command will update the `App.config` to include binding redirects from previous version of `FSharp.Core` to
Expand All @@ -132,7 +134,7 @@ NuGet
NuGet packages are available for each of the supported testing frameworks:

* The package with ID FsUnit supports NUnit. It is the original.
* The package with ID FsUnit.xUnit supports xUnit.NET.
* The package with ID FsUnit.Xunit supports Xunit.NET.
* The package with ID FsUnit.MbUnit supports MbUnit.
* The packager with ID Fs30Unit.MsTest supports MsTest in VS11.

Expand Down

0 comments on commit c1259c6

Please sign in to comment.