mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 12:03:19 +00:00
Update StringExtensionsTests.cs
Update StringExtensionsTests.cs for the URL expansion. The initial fix was incorrect.
This commit is contained in:
@@ -57,8 +57,8 @@ namespace Octokit.Tests.Helpers
|
||||
[InlineData("https://host.com/path?name=other", "https://host.com/path?name=other")]
|
||||
[InlineData("https://host.com/path?name=example name.txt", "https://host.com/path{?name}")]
|
||||
[InlineData("https://host.com/path", "https://host.com/path{?other}")]
|
||||
[InlineData("https://host.com/path?name=example name.txt,label=labeltext", "https://host.com/path{?name,label}")]
|
||||
[InlineData("https://host.com/path?name=example name.txt,label=labeltext", "https://host.com/path{?name,label,other}")]
|
||||
[InlineData("https://host.com/path?name=example name.txt&label=labeltext", "https://host.com/path{?name,label}")]
|
||||
[InlineData("https://host.com/path?name=example name.txt&label=labeltext", "https://host.com/path{?name,label,other}")]
|
||||
public void ExpandsUriTemplates(string expected, string template)
|
||||
{
|
||||
Assert.Equal(expected, template.ExpandUriTemplate(new { name = "example name.txt",label="labeltext" }).ToString());
|
||||
|
||||
Reference in New Issue
Block a user