Removing dotnet-test-mstest when migrating because that package is no longer needed. (#4690)

This commit is contained in:
Piotr Puszkiewicz 2016-11-14 14:59:59 -08:00 committed by GitHub
commit bf425a6f0a
2 changed files with 3 additions and 0 deletions

View file

@ -24,6 +24,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration
public const string NetStandardPackageName = "NETStandard.Library";
public const string NetStandardPackageVersion = "1.6.0";
public const string DotnetTestXunit = "dotnet-test-xunit";
public const string DotnetTestMSTest = "dotnet-test-mstest";
public static readonly IDictionary<string, PackageDependencyInfo> ProjectDependencyPackages =
new Dictionary<string, PackageDependencyInfo> {
@ -52,6 +53,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration
Name = MstestTestFrameworkName,
Version = ConstantPackageVersions.MstestTestFrameworkVersion } },
{ DotnetTestXunit, null },
{ DotnetTestMSTest, null },
};
public static readonly IDictionary<string, PackageDependencyInfo> ProjectToolPackages =

View file

@ -34,6 +34,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
[InlineData("Microsoft.AspNetCore.Razor.Design")]
[InlineData("Microsoft.VisualStudio.Web.CodeGeneration.Tools")]
[InlineData("dotnet-test-xunit")]
[InlineData("dotnet-test-mstest")]
public void It_does_not_migrate_project_tool_dependency_that_is_no_longer_needed(string dependencyName)
{
var mockProj = RunPackageDependenciesRuleOnPj(@"