Skip to content

Commit

Permalink
WIP test'
Browse files Browse the repository at this point in the history
  • Loading branch information
William Li committed Sep 21, 2017
1 parent 8dccfd9 commit 0fefc41
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net46</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NServiceBus" Version="6.4.0" />
</ItemGroup>

</Project>
15 changes: 15 additions & 0 deletions TestAssets/TestProjects/DesktopUsingPackageWithPdb/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;

namespace TestApp
{
class Program
{
static void Main()
{
Console.WriteLine("Hello World");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -523,5 +523,26 @@ public void It_places_package_satellites_correctly(bool crossTarget)
outputDirectory.Should().NotHaveFile("FluentValidation.resources.dll");
outputDirectory.Should().HaveFile(@"fr\FluentValidation.resources.dll");
}

[WindowsOnlyFact]
public void It_places_package_pdb_file_correctly()
{
var testAsset = _testAssetsManager
.CopyTestAsset(
"DesktopUsingPackageWithPdb")
.WithSource();

testAsset.Restore(Log);

var buildCommand = new BuildCommand(Log, testAsset.TestRoot);
buildCommand
.Execute()
.Should()
.Pass();

var outputDirectory = buildCommand.GetOutputDirectory("net46");
outputDirectory.Should().HaveFile("NServiceBus.Core.dll"); //TODO REMOVE THIS LINE LATER
outputDirectory.Should().HaveFile("NServiceBus.Core.pdb");
}
}
}

0 comments on commit 0fefc41

Please sign in to comment.