Removing dotnet-test-mstest when migrating because that package is no longer needed.

This commit is contained in:
Livar Cunha 2016-11-11 10:52:33 -08:00
parent 43dfa6b8ba
commit df755b5554
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 NetStandardPackageName = "NETStandard.Library";
public const string NetStandardPackageVersion = "1.6.0"; public const string NetStandardPackageVersion = "1.6.0";
public const string DotnetTestXunit = "dotnet-test-xunit"; public const string DotnetTestXunit = "dotnet-test-xunit";
public const string DotnetTestMSTest = "dotnet-test-mstest";
public static readonly IDictionary<string, PackageDependencyInfo> ProjectDependencyPackages = public static readonly IDictionary<string, PackageDependencyInfo> ProjectDependencyPackages =
new Dictionary<string, PackageDependencyInfo> { new Dictionary<string, PackageDependencyInfo> {
@ -52,6 +53,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration
Name = MstestTestFrameworkName, Name = MstestTestFrameworkName,
Version = ConstantPackageVersions.MstestTestFrameworkVersion } }, Version = ConstantPackageVersions.MstestTestFrameworkVersion } },
{ DotnetTestXunit, null }, { DotnetTestXunit, null },
{ DotnetTestMSTest, null },
}; };
public static readonly IDictionary<string, PackageDependencyInfo> ProjectToolPackages = 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.AspNetCore.Razor.Design")]
[InlineData("Microsoft.VisualStudio.Web.CodeGeneration.Tools")] [InlineData("Microsoft.VisualStudio.Web.CodeGeneration.Tools")]
[InlineData("dotnet-test-xunit")] [InlineData("dotnet-test-xunit")]
[InlineData("dotnet-test-mstest")]
public void It_does_not_migrate_project_tool_dependency_that_is_no_longer_needed(string dependencyName) public void It_does_not_migrate_project_tool_dependency_that_is_no_longer_needed(string dependencyName)
{ {
var mockProj = RunPackageDependenciesRuleOnPj(@" var mockProj = RunPackageDependenciesRuleOnPj(@"