Rename to MigrateJsonPropertiesRule
This commit is contained in:
parent
dd7a76e6f0
commit
190f0fc756
3 changed files with 5 additions and 5 deletions
|
@ -12,6 +12,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration
|
|||
new MigrateRootOptionsRule(),
|
||||
new MigrateTFMRule(),
|
||||
new MigrateBuildOptionsRule(),
|
||||
new MigrateJsonPropertiesRule(),
|
||||
new MigratePackOptionsRule(),
|
||||
new MigrateRuntimeOptionsRule(),
|
||||
new MigratePublishOptionsRule(),
|
||||
|
@ -19,7 +20,6 @@ namespace Microsoft.DotNet.ProjectJsonMigration
|
|||
new MigratePackageDependenciesAndToolsRule(),
|
||||
new MigrateConfigurationsRule(),
|
||||
new MigrateScriptsRule(),
|
||||
new MigratePropertiesRule(),
|
||||
new WorkaroundOptionsRule(),
|
||||
new SaveOutputProjectRule()
|
||||
};
|
||||
|
|
|
@ -10,7 +10,7 @@ using Newtonsoft.Json.Linq;
|
|||
|
||||
namespace Microsoft.DotNet.ProjectJsonMigration.Rules
|
||||
{
|
||||
public class MigratePropertiesRule : IMigrationRule
|
||||
public class MigrateJsonPropertiesRule : IMigrationRule
|
||||
{
|
||||
private Dictionary<string, ConditionalTransform<JToken, ProjectPropertyElement>> _propertyMappings
|
||||
= new Dictionary<string, ConditionalTransform<JToken, ProjectPropertyElement>>
|
||||
|
@ -22,7 +22,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Rules
|
|||
|
||||
private readonly ITransformApplicator _transformApplicator;
|
||||
|
||||
public MigratePropertiesRule(ITransformApplicator transformApplicator = null)
|
||||
public MigrateJsonPropertiesRule(ITransformApplicator transformApplicator = null)
|
||||
{
|
||||
_transformApplicator = transformApplicator ?? new TransformApplicator();
|
||||
}
|
|
@ -10,7 +10,7 @@ using Xunit;
|
|||
|
||||
namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
||||
{
|
||||
public class GivenThatIWantToMigrateProperties : TestBase
|
||||
public class GivenThatIWantToMigrateJsonProperties : TestBase
|
||||
{
|
||||
[Fact]
|
||||
public void It_does_not_migrate_missing_props()
|
||||
|
@ -49,7 +49,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
|||
testDirectory = testDirectory ?? Temp.CreateDirectory().Path;
|
||||
return TemporaryProjectFileRuleRunner.RunRules(new IMigrationRule[]
|
||||
{
|
||||
new MigratePropertiesRule()
|
||||
new MigrateJsonPropertiesRule()
|
||||
}, project, testDirectory);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue