Rename a file

This commit is contained in:
Ryan Nowak 2018-06-06 09:19:40 -07:00 committed by Ryan Nowak
parent 590d9f65f6
commit e248f2fb2a
3 changed files with 12 additions and 12 deletions

View File

@ -14,10 +14,10 @@ using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow; using System.Threading.Tasks.Dataflow;
using Microsoft.VisualStudio.LanguageServices; using Microsoft.VisualStudio.LanguageServices;
using Microsoft.VisualStudio.ProjectSystem; using Microsoft.VisualStudio.ProjectSystem;
using ContentItem = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManageProjectSystemSchema.ContentItem; using ContentItem = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManagedProjectSystemSchema.ContentItem;
using ItemReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManageProjectSystemSchema.ItemReference; using ItemReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManagedProjectSystemSchema.ItemReference;
using NoneItem = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManageProjectSystemSchema.NoneItem; using NoneItem = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManagedProjectSystemSchema.NoneItem;
using ResolvedCompilationReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManageProjectSystemSchema.ResolvedCompilationReference; using ResolvedCompilationReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManagedProjectSystemSchema.ResolvedCompilationReference;
namespace Microsoft.CodeAnalysis.Razor.ProjectSystem namespace Microsoft.CodeAnalysis.Razor.ProjectSystem
{ {

View File

@ -4,7 +4,7 @@
namespace Microsoft.CodeAnalysis.Razor.ProjectSystem namespace Microsoft.CodeAnalysis.Razor.ProjectSystem
{ {
// Well-Known Schema and property names defined by the ManagedProjectSystem // Well-Known Schema and property names defined by the ManagedProjectSystem
internal static class ManageProjectSystemSchema internal static class ManagedProjectSystemSchema
{ {
public static class ResolvedCompilationReference public static class ResolvedCompilationReference
{ {

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
using Microsoft.VisualStudio.ProjectSystem; using Microsoft.VisualStudio.ProjectSystem;
using Moq; using Moq;
using Xunit; using Xunit;
using ItemReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManageProjectSystemSchema.ItemReference; using ItemReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManagedProjectSystemSchema.ItemReference;
namespace Microsoft.CodeAnalysis.Razor.ProjectSystem namespace Microsoft.CodeAnalysis.Razor.ProjectSystem
{ {
@ -19,9 +19,9 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem
Workspace = new AdhocWorkspace(); Workspace = new AdhocWorkspace();
ProjectManager = new TestProjectSnapshotManager(Dispatcher, Workspace); ProjectManager = new TestProjectSnapshotManager(Dispatcher, Workspace);
ReferenceItems = new ItemCollection(ManageProjectSystemSchema.ResolvedCompilationReference.SchemaName); ReferenceItems = new ItemCollection(ManagedProjectSystemSchema.ResolvedCompilationReference.SchemaName);
ContentItems = new ItemCollection(ManageProjectSystemSchema.ContentItem.SchemaName); ContentItems = new ItemCollection(ManagedProjectSystemSchema.ContentItem.SchemaName);
NoneItems = new ItemCollection(ManageProjectSystemSchema.NoneItem.SchemaName); NoneItems = new ItemCollection(ManagedProjectSystemSchema.NoneItem.SchemaName);
} }
private ItemCollection ReferenceItems { get; } private ItemCollection ReferenceItems { get; }
@ -38,13 +38,13 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem
public void GetChangedAndRemovedDocuments_ReturnsChangedContentAndNoneItems() public void GetChangedAndRemovedDocuments_ReturnsChangedContentAndNoneItems()
{ {
// Arrange // Arrange
var afterChangeContentItems = new ItemCollection(ManageProjectSystemSchema.ContentItem.SchemaName); var afterChangeContentItems = new ItemCollection(ManagedProjectSystemSchema.ContentItem.SchemaName);
ContentItems.Item("Index.cshtml", new Dictionary<string, string>() ContentItems.Item("Index.cshtml", new Dictionary<string, string>()
{ {
[ItemReference.LinkPropertyName] = "NewIndex.cshtml", [ItemReference.LinkPropertyName] = "NewIndex.cshtml",
[ItemReference.FullPathPropertyName] = "C:\\From\\Index.cshtml", [ItemReference.FullPathPropertyName] = "C:\\From\\Index.cshtml",
}); });
var afterChangeNoneItems = new ItemCollection(ManageProjectSystemSchema.NoneItem.SchemaName); var afterChangeNoneItems = new ItemCollection(ManagedProjectSystemSchema.NoneItem.SchemaName);
NoneItems.Item("About.cshtml", new Dictionary<string, string>() NoneItems.Item("About.cshtml", new Dictionary<string, string>()
{ {
[ItemReference.LinkPropertyName] = "NewAbout.cshtml", [ItemReference.LinkPropertyName] = "NewAbout.cshtml",
@ -378,7 +378,7 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem
{ {
// Arrange // Arrange
ReferenceItems.Item("c:\\nuget\\Microsoft.AspNetCore.Mvc.razor.dll"); ReferenceItems.Item("c:\\nuget\\Microsoft.AspNetCore.Mvc.razor.dll");
var afterChangeContentItems = new ItemCollection(ManageProjectSystemSchema.ContentItem.SchemaName); var afterChangeContentItems = new ItemCollection(ManagedProjectSystemSchema.ContentItem.SchemaName);
ContentItems.Item("Index.cshtml", new Dictionary<string, string>() ContentItems.Item("Index.cshtml", new Dictionary<string, string>()
{ {
[ItemReference.FullPathPropertyName] = "C:\\Path\\Index.cshtml", [ItemReference.FullPathPropertyName] = "C:\\Path\\Index.cshtml",