Canonicalize.Tests.Strategies.HostStrategyTests.AssertUrlChange C# (CSharp) Метод

AssertUrlChange() приватный Метод

private AssertUrlChange ( string originalUrl, string expectedCanonicalUrl ) : void
originalUrl string
expectedCanonicalUrl string
Результат void
        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)));
        }
HostStrategyTests