Implemented interface member:
method
ReorderSourceFiles
Microsoft.VisualStudio.LanguageServices.ProjectSystem.IWorkspaceProjectContext.ReorderSourceFiles(System.Collections.Generic.IEnumerable<System.String>)
26 references to ReorderSourceFiles
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (26)
ProjectSystemShim\CPS\SourceFileHandlingTests.cs (26)
92project.ReorderSourceFiles([sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1]); 96project.ReorderSourceFiles([sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1]); 145project.ReorderSourceFiles([sourceFileFullPath5, sourceFileFullPath3, sourceFileFullPath1]); 187project.ReorderSourceFiles([sourceFileFullPath5, sourceFileFullPath3, sourceFileFullPath1]); 197project.ReorderSourceFiles([sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1]); 230project.ReorderSourceFiles([sourceFileFullPath2, sourceFileFullPath1]); 237project.ReorderSourceFiles([sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1]); 272project.ReorderSourceFiles([sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1]); 279project.ReorderSourceFiles([sourceFileFullPath2, sourceFileFullPath1]); 312Assert.Throws<ArgumentException>(() => project.ReorderSourceFiles([sourceFileFullPath4, sourceFileFullPath5])); 315Assert.Throws<InvalidOperationException>(() => project.ReorderSourceFiles([@"C:\invalid source file", sourceFileFullPath2, sourceFileFullPath3, sourceFileFullPath4, sourceFileFullPath5])); 317Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles([])); 318Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null)); 337Assert.Throws<ArgumentException>(() => project.ReorderSourceFiles([sourceFileFullPath4, sourceFileFullPath5])); 338Assert.Throws<ArgumentException>(() => project.ReorderSourceFiles([@"C:\invalid source file"])); // no files were added, therefore we should get an argument exception 339Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles([])); 340Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null)); 345Assert.Throws<ArgumentException>(() => project.ReorderSourceFiles([sourceFileFullPath4, sourceFileFullPath5])); 346Assert.Throws<InvalidOperationException>(() => project.ReorderSourceFiles([@"C:\invalid source file"])); 347Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles([])); 348Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null)); 361Assert.Throws<ArgumentException>(() => project.ReorderSourceFiles([sourceFileFullPath4, sourceFileFullPath5])); 362Assert.Throws<InvalidOperationException>(() => project.ReorderSourceFiles([@"C:\invalid source file", sourceFileFullPath2, sourceFileFullPath3, sourceFileFullPath4, sourceFileFullPath5])); 363Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles([])); 364Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null)); 386Assert.Throws<InvalidOperationException>(() => project.ReorderSourceFiles([sourceFileFullPath2]));