-
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.
BUGFIX: Detect Lib folder on Linux - fixes #332
- Loading branch information
Showing
7 changed files
with
173 additions
and
131 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
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
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,29 @@ | ||
module Paket.InstallModel.Xml.FantomasLibSpecs | ||
|
||
open Paket | ||
open NUnit.Framework | ||
open FsUnit | ||
open Paket.TestHelpers | ||
|
||
let expected = """ | ||
<ItemGroup xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Reference Include="FantomasLib"> | ||
<HintPath>..\..\..\Fantomas\Lib\FantomasLib.dll</HintPath> | ||
<Private>True</Private> | ||
<Paket>True</Paket> | ||
</Reference> | ||
</ItemGroup>""" | ||
|
||
[<Test>] | ||
let ``should generate Xml for Fantomas 1.5``() = | ||
let model = | ||
InstallModel.CreateFromLibs("Fantomas", SemVer.Parse "1.5.0", | ||
[ @"..\Fantomas\Lib\FantomasLib.dll" | ||
@"..\Fantomas\Lib\FSharp.Core.dll" | ||
@"..\Fantomas\Lib\Fantomas.exe" ], | ||
Nuspec.Explicit ["FantomasLib.dll"]).FilterFallbacks() | ||
|
||
let chooseNode = ProjectFile.Load("./ProjectFile/TestData/Empty.fsprojtest").Value.GenerateXml(model) | ||
chooseNode.OuterXml | ||
|> normalizeXml | ||
|> shouldEqual (normalizeXml expected) |
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