Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Omondi committed Apr 19, 2024
1 parent 54208a1 commit 9f95d28
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1075,15 +1075,15 @@ public void repro4085()

[Theory]
[InlineData("{path}", "WithPath")]
[InlineData("archived{path}","archivedWithPath")]
[InlineData("files{path}","filesWithPath")]
[InlineData("name(idParam='{id}')","nameWithId")]
[InlineData("name(idParam={id})","nameWithId")]
[InlineData("name(idParam='{id}',idParam2='{id2}')","nameWithIdWithId2")]
[InlineData("archived{path}", "archivedWithPath")]
[InlineData("files{path}", "filesWithPath")]
[InlineData("name(idParam='{id}')", "nameWithId")]
[InlineData("name(idParam={id})", "nameWithId")]
[InlineData("name(idParam='{id}',idParam2='{id2}')", "nameWithIdWithId2")]
public void CleanupParametersFromPathGeneratesDifferentResultsWithPrefixPresent(string segmentName, string expectedIdentifer)
{
var result = OpenApiUrlTreeNodeExtensions.CleanupParametersFromPath(segmentName);
Assert.Equal(expectedIdentifer, result );
Assert.Equal(expectedIdentifer, result);
}

private static OpenApiUrlTreeNode GetChildNodeByPath(OpenApiUrlTreeNode node, string path)
Expand Down

0 comments on commit 9f95d28

Please sign in to comment.