Skip to content

Commit 00eadc6

Browse files
committed
test pack command
1 parent 56d03c1 commit 00eadc6

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright (c) .NET Foundation and contributors. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
module ConsoleApplication.Program
4+
5+
open System
6+
7+
[<EntryPoint>]
8+
let main argv =
9+
printfn "Hello World!"
10+
0
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), testAsset.props))\testAsset.props" />
3+
4+
<PropertyGroup>
5+
<TargetFramework>netcoreapp2.0</TargetFramework>
6+
<OutputType>Exe</OutputType>
7+
<!-- Issue: https://github.com/dotnet/sdk/issues/1150 -->
8+
<DisableImplicitPackageTargetFallback>true</DisableImplicitPackageTargetFallback>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<Compile Include="Program.fs" />
13+
</ItemGroup>
14+
15+
</Project>

test/dotnet-pack.Tests/PackTests.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,12 @@ public void PackAddsCorrectFilesForProjectsWithOutputNameSpecified()
157157
.And.Contain(e => e.FullName == "lib/netstandard1.5/MyLibrary.pdb");
158158
}
159159

160-
[Fact]
161-
public void PackWorksWithLocalProject()
160+
[Theory]
161+
[InlineData("C#", "TestAppSimple")]
162+
[InlineData("F#", "FSharpTestAppSimple")]
163+
public void PackWorksWithLocalProject(string language, string projectName)
162164
{
163-
var testInstance = TestAssets.Get("TestAppSimple")
165+
var testInstance = TestAssets.Get(projectName)
164166
.CreateInstance()
165167
.WithSourceFiles()
166168
.WithRestoreFiles();

0 commit comments

Comments
 (0)