From 9ef7828203f57c6c1fe53161f4d9283591a85171 Mon Sep 17 00:00:00 2001 From: Anthony Perez Date: Mon, 16 Nov 2015 14:38:10 +0000 Subject: [PATCH] Add test for TargetFrameworkProfile detection --- tests/Paket.Tests/ProjectFile/OutputSpecs.fs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Paket.Tests/ProjectFile/OutputSpecs.fs b/tests/Paket.Tests/ProjectFile/OutputSpecs.fs index fc8e45b17f..ca60736cfb 100644 --- a/tests/Paket.Tests/ProjectFile/OutputSpecs.fs +++ b/tests/Paket.Tests/ProjectFile/OutputSpecs.fs @@ -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) +[] +let ``should detect framework profile for ProjectWithConditions file`` () = + ProjectFile.TryLoad("./ProjectFile/TestData/ProjectWithConditions.fsprojtest").Value.GetTargetProfile() + |> shouldEqual (SinglePlatform(DotNetFramework(FrameworkVersion.V4_6))) + [] let ``should detect assembly name for Project1 proj file`` () = ProjectFile.TryLoad("./ProjectFile/TestData/Project1.fsprojtest").Value.GetAssemblyName()