public void NestedPageShouldBeLoaded() { // Arrange var webFormsOptions = Options.Create(new WebFormsOptions()); var hostingEnvironment = new HostingEnvironment() { ApplicationName = "My.AspNetCore.WebForms.Tests" }; var pageLoader = new DefaultPageLoader(webFormsOptions, hostingEnvironment); // Act var page = pageLoader.Load("Admin/LoginPage"); // Assert Assert.NotNull(page); }
public void LoadPageShouldIgnoreRelativePathCasing(string path) { // Arrange var webFormsOptions = Options.Create(new WebFormsOptions()); var hostingEnvironment = new HostingEnvironment() { ApplicationName = "My.AspNetCore.WebForms.Tests" }; var pageLoader = new DefaultPageLoader(webFormsOptions, hostingEnvironment); // Act var page = pageLoader.Load(path); // Assert Assert.NotNull(page); }