public void ConstructorTest(string url, string?hostnameReplacement, string expected) { var renderUrl = new RenderUrl(this.client, url, hostnameReplacement); Assert.Equal(expected, renderUrl.Url.ToString()); Assert.Equal(expected, renderUrl.ToString()); Assert.Equal(expected, renderUrl); Assert.Equal(this.client, renderUrl.Gw2Client); }
public void ConstructorTest() { string url = "https://render.guildwars2.com/file/test/1234.png"; var renderUrl = new RenderUrl(this.client, url); Assert.Equal(url, renderUrl.Url.ToString()); Assert.Equal(url, renderUrl.ToString()); Assert.Equal(url, renderUrl); Assert.Equal(this.client, renderUrl.Gw2Client); }