-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test proving issue with '>= net40' and silverlight
Issue #1124
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |