Skip to content

Commit

Permalink
Add a test proving issue with '>= net40' and silverlight
Browse files Browse the repository at this point in the history
Issue #1124
  • Loading branch information
vbfox committed Oct 15, 2015
1 parent 2daab5b commit bfa68f5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Paket.Tests/Paket.Tests.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
<Compile Include="TemplateFileParsing.fs" />
<Compile Include="NuspecWriterSpecs.fs" />
<Compile Include="RestrictionFilterSpecs.fs" />
<Compile Include="RestrictionApplicationSpecs.fs" />
<Compile Include="PackageProcessSpecs.fs" />
<Content Include="PackagesConfig\xunit.visualstudio.packages.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down
19 changes: 19 additions & 0 deletions tests/Paket.Tests/RestrictionApplicationSpecs.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module Packet.RestrictionApplicationSpecs

open System.IO
open Paket
open Paket.Domain
open Chessie.ErrorHandling
open FsUnit
open NUnit.Framework
open TestHelpers
open Paket.Requirements

[<Test>]
let ``>= net40 does not include silverlight (#1124)`` () =
/// https://github.com/fsprojects/Paket/issues/1124
let restrictions = [FrameworkRestriction.AtLeast(DotNetFramework(FrameworkVersion.V4))]
let targets = KnownTargetProfiles.DotNetFrameworkProfiles @ KnownTargetProfiles.SilverlightProfiles
let restricted = applyRestrictionsToTargets restrictions targets

restricted |> shouldEqual KnownTargetProfiles.DotNetFrameworkProfiles

0 comments on commit bfa68f5

Please sign in to comment.