Removing dotnet-test-mstest when migrating because that package is no longer needed. (#4690)
This commit is contained in:
commit
bf425a6f0a
2 changed files with 3 additions and 0 deletions
|
@ -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 =
|
||||||
|
|
|
@ -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(@"
|
||||||
|
|
Loading…
Reference in a new issue