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)
92
project.
ReorderSourceFiles
([sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1]);
96
project.
ReorderSourceFiles
([sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1]);
145
project.
ReorderSourceFiles
([sourceFileFullPath5, sourceFileFullPath3, sourceFileFullPath1]);
187
project.
ReorderSourceFiles
([sourceFileFullPath5, sourceFileFullPath3, sourceFileFullPath1]);
197
project.
ReorderSourceFiles
([sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1]);
230
project.
ReorderSourceFiles
([sourceFileFullPath2, sourceFileFullPath1]);
237
project.
ReorderSourceFiles
([sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1]);
272
project.
ReorderSourceFiles
([sourceFileFullPath5, sourceFileFullPath4, sourceFileFullPath3, sourceFileFullPath2, sourceFileFullPath1]);
279
project.
ReorderSourceFiles
([sourceFileFullPath2, sourceFileFullPath1]);
312
Assert.Throws<ArgumentException>(() => project.
ReorderSourceFiles
([sourceFileFullPath4, sourceFileFullPath5]));
315
Assert.Throws<InvalidOperationException>(() => project.
ReorderSourceFiles
([@"C:\invalid source file", sourceFileFullPath2, sourceFileFullPath3, sourceFileFullPath4, sourceFileFullPath5]));
317
Assert.Throws<ArgumentOutOfRangeException>(() => project.
ReorderSourceFiles
([]));
318
Assert.Throws<ArgumentOutOfRangeException>(() => project.
ReorderSourceFiles
(null));
337
Assert.Throws<ArgumentException>(() => project.
ReorderSourceFiles
([sourceFileFullPath4, sourceFileFullPath5]));
338
Assert.Throws<ArgumentException>(() => project.
ReorderSourceFiles
([@"C:\invalid source file"])); // no files were added, therefore we should get an argument exception
339
Assert.Throws<ArgumentOutOfRangeException>(() => project.
ReorderSourceFiles
([]));
340
Assert.Throws<ArgumentOutOfRangeException>(() => project.
ReorderSourceFiles
(null));
345
Assert.Throws<ArgumentException>(() => project.
ReorderSourceFiles
([sourceFileFullPath4, sourceFileFullPath5]));
346
Assert.Throws<InvalidOperationException>(() => project.
ReorderSourceFiles
([@"C:\invalid source file"]));
347
Assert.Throws<ArgumentOutOfRangeException>(() => project.
ReorderSourceFiles
([]));
348
Assert.Throws<ArgumentOutOfRangeException>(() => project.
ReorderSourceFiles
(null));
361
Assert.Throws<ArgumentException>(() => project.
ReorderSourceFiles
([sourceFileFullPath4, sourceFileFullPath5]));
362
Assert.Throws<InvalidOperationException>(() => project.
ReorderSourceFiles
([@"C:\invalid source file", sourceFileFullPath2, sourceFileFullPath3, sourceFileFullPath4, sourceFileFullPath5]));
363
Assert.Throws<ArgumentOutOfRangeException>(() => project.
ReorderSourceFiles
([]));
364
Assert.Throws<ArgumentOutOfRangeException>(() => project.
ReorderSourceFiles
(null));
386
Assert.Throws<InvalidOperationException>(() => project.
ReorderSourceFiles
([sourceFileFullPath2]));