Skip to content

Commit 0fefc41

Browse files
author
William Li
committed
WIP test'
1 parent 8dccfd9 commit 0fefc41

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net46</TargetFramework>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<PackageReference Include="NServiceBus" Version="6.4.0" />
10+
</ItemGroup>
11+
12+
</Project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
4+
using System;
5+
6+
namespace TestApp
7+
{
8+
class Program
9+
{
10+
static void Main()
11+
{
12+
Console.WriteLine("Hello World");
13+
}
14+
}
15+
}

test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExe.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,5 +523,26 @@ public void It_places_package_satellites_correctly(bool crossTarget)
523523
outputDirectory.Should().NotHaveFile("FluentValidation.resources.dll");
524524
outputDirectory.Should().HaveFile(@"fr\FluentValidation.resources.dll");
525525
}
526+
527+
[WindowsOnlyFact]
528+
public void It_places_package_pdb_file_correctly()
529+
{
530+
var testAsset = _testAssetsManager
531+
.CopyTestAsset(
532+
"DesktopUsingPackageWithPdb")
533+
.WithSource();
534+
535+
testAsset.Restore(Log);
536+
537+
var buildCommand = new BuildCommand(Log, testAsset.TestRoot);
538+
buildCommand
539+
.Execute()
540+
.Should()
541+
.Pass();
542+
543+
var outputDirectory = buildCommand.GetOutputDirectory("net46");
544+
outputDirectory.Should().HaveFile("NServiceBus.Core.dll"); //TODO REMOVE THIS LINE LATER
545+
outputDirectory.Should().HaveFile("NServiceBus.Core.pdb");
546+
}
526547
}
527548
}

0 commit comments

Comments
 (0)