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