Skip to content

Commit

Permalink
Add test for TargetFrameworkProfile detection
Browse files Browse the repository at this point in the history
  • Loading branch information
allykzam committed Nov 16, 2015
1 parent 73e6f8c commit 9ef7828
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Paket.Tests/ProjectFile/OutputSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ let ``should detect output path for proj file``
ProjectFile.TryLoad(sprintf "./ProjectFile/TestData/%s.fsprojtest" project).Value.GetOutputDirectory configuration
|> shouldEqual (System.IO.Path.Combine(@"bin", configuration) |> normalizePath)

[<Test>]
let ``should detect framework profile for ProjectWithConditions file`` () =
ProjectFile.TryLoad("./ProjectFile/TestData/ProjectWithConditions.fsprojtest").Value.GetTargetProfile()
|> shouldEqual (SinglePlatform(DotNetFramework(FrameworkVersion.V4_6)))

[<Test>]
let ``should detect assembly name for Project1 proj file`` () =
ProjectFile.TryLoad("./ProjectFile/TestData/Project1.fsprojtest").Value.GetAssemblyName()
Expand Down

0 comments on commit 9ef7828

Please sign in to comment.