From f000980b8dec17aab3442daa30a319680268c349 Mon Sep 17 00:00:00 2001 From: Naveen Date: Wed, 16 Sep 2015 19:29:56 -0400 Subject: [PATCH] Update StringExtensionsTests.cs Update StringExtensionsTests.cs for the URL expansion. The initial fix was incorrect. --- Octokit.Tests/Helpers/StringExtensionsTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Octokit.Tests/Helpers/StringExtensionsTests.cs b/Octokit.Tests/Helpers/StringExtensionsTests.cs index 0b7171db..51068460 100644 --- a/Octokit.Tests/Helpers/StringExtensionsTests.cs +++ b/Octokit.Tests/Helpers/StringExtensionsTests.cs @@ -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());