public void Should_build_url_from_options(string url) { var sut = new UrlGenerator(Options.Create(new UrlOptions { BaseUrl = url, BasePath = null })); Assert.Equal("http://squidex.io", sut.BuildUrl()); Assert.Equal("http://squidex.io", sut.BuildUrl("/", false)); Assert.Equal("http://squidex.io", sut.BuildCallbackUrl("/", false)); Assert.Equal("http://squidex.io/", sut.BuildUrl("/", true)); Assert.Equal("http://squidex.io/", sut.BuildCallbackUrl("/", true)); Assert.Equal("http://squidex.io/path", sut.BuildUrl("/path", false)); Assert.Equal("http://squidex.io/path", sut.BuildUrl("/path/", false)); Assert.Equal("http://squidex.io/path/", sut.BuildUrl("/path", true)); Assert.Equal("http://squidex.io/path/", sut.BuildUrl("/path/", true)); }