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)
91project.ReorderSourceFiles(new[] { sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1 }); 95project.ReorderSourceFiles(new[] { sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1 }); 142project.ReorderSourceFiles(new[] { sourceFileFullPath5, sourceFileFullPath3, sourceFileFullPath1 }); 183project.ReorderSourceFiles(new[] { sourceFileFullPath5, sourceFileFullPath3, sourceFileFullPath1 }); 193project.ReorderSourceFiles(new[] { sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1 }); 226project.ReorderSourceFiles(new[] { sourceFileFullPath2, sourceFileFullPath1 }); 234project.ReorderSourceFiles(new[] { sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1 }); 268project.ReorderSourceFiles(new[] { sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1 }); 276project.ReorderSourceFiles(new[] { sourceFileFullPath2, sourceFileFullPath1 }); 311Assert.Throws<ArgumentException>(() => project.ReorderSourceFiles(new[] { sourceFileFullPath4, sourceFileFullPath5 })); 314Assert.Throws<InvalidOperationException>(() => project.ReorderSourceFiles(new[] { @"C:\invalid source file", sourceFileFullPath2, sourceFileFullPath3, sourceFileFullPath4, sourceFileFullPath5 })); 316Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>())); 317Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null)); 337Assert.Throws<ArgumentException>(() => project.ReorderSourceFiles(new[] { sourceFileFullPath4, sourceFileFullPath5 })); 338Assert.Throws<ArgumentException>(() => project.ReorderSourceFiles(new[] { @"C:\invalid source file" })); // no files were added, therefore we should get an argument exception 339Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>())); 340Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null)); 345Assert.Throws<ArgumentException>(() => project.ReorderSourceFiles(new[] { sourceFileFullPath4, sourceFileFullPath5 })); 346Assert.Throws<InvalidOperationException>(() => project.ReorderSourceFiles(new[] { @"C:\invalid source file" })); 347Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>())); 348Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null)); 361Assert.Throws<ArgumentException>(() => project.ReorderSourceFiles(new[] { sourceFileFullPath4, sourceFileFullPath5 })); 362Assert.Throws<InvalidOperationException>(() => project.ReorderSourceFiles(new[] { @"C:\invalid source file", sourceFileFullPath2, sourceFileFullPath3, sourceFileFullPath4, sourceFileFullPath5 })); 363Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(new List<string>())); 364Assert.Throws<ArgumentOutOfRangeException>(() => project.ReorderSourceFiles(null)); 387Assert.Throws<InvalidOperationException>(() => project.ReorderSourceFiles(new[] { sourceFileFullPath2 }));