public void AssertUrlChange(string originalUrl, string expectedCanonicalUrl) { var uriBuilder = new UriBuilder(originalUrl); IUrlStrategy strategy = new HostStrategy("example.net"); strategy.Apply(uriBuilder); Assert.That(uriBuilder.Uri, Is.EqualTo(new Uri(expectedCanonicalUrl))); }