public void ChannelWrapper_NormalizesRandomizedUrl() { var randomizedUrl = "wrap://2354gfds45#tcpex://localhost:12356/CoolService"; var originalUrl = ChannelWrapper.NormalizeUrl(randomizedUrl); Assert.IsFalse(string.IsNullOrWhiteSpace(originalUrl)); Assert.AreEqual("tcpex://localhost:12356/CoolService", originalUrl); }