Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }