public void UrlCompressionTest(string hostName) { var base64 = new Base64Host(hostName).ToString(); var deserializedHostName = Base64Host.Parse(base64).Host; Assert.Equal(hostName, deserializedHostName); }
public void UrlDecompressTest(string compressed, string hostName) { var result = Base64Host.Parse(compressed); Assert.Equal(hostName, result.Host); }