Skip to content

Commit 3314c7f

Browse files
committed
Make template baseline test project key disregard ordering
1 parent 585b02e commit 3314c7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ProjectTemplates/test/BaselineTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ private string CreateProjectKey(string arguments)
119119
// Add template name, value has form of "new name"
120120
text += argumentsArray[0].Substring("new ".Length);
121121

122+
// Sort arguments to ensure definitions that differ only by arguments order are caught
123+
Array.Sort(argumentsArray, StringComparer.Ordinal);
124+
122125
foreach (var argValue in argumentsArray)
123126
{
124127
var argSegments = argValue.Split(' ', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries);

0 commit comments

Comments
 (0)