Example #1
0
        public void larger_path()
        {
            var sut = new PageSource("/trafikinfo/Intranet/doc/", Environment.CurrentDirectory + "\\TestDocs\\");
            var actual = sut.GetContent("/FolderTest/");

            actual.Should().Be("indexfolder");
        }
Example #2
0
        public void folerName_should_give_us_the_index_document_in_that_folder()
        {
            var sut = new PageSource("/intranet/", Environment.CurrentDirectory + "\\TestDocs\\");
            var actual = sut.GetContent("FolderTest");

            actual.Should().Be("indexfolder");
        }
Example #3
0
        public void getting_root_should_give_us_the_index_document_from_the_root()
        {
            var sut = new PageSource("/intranet/", Environment.CurrentDirectory + "\\TestDocs\\");
            var actual = sut.GetContent("/");

            actual.Should().Be("index");
        }
Example #4
0
        public void drop_root_url_from_url()
        {
            var sut = new PageSource("/intranet/", Environment.CurrentDirectory + "\\TestDocs\\");
            var actual = sut.GetContent("/intranet/");

            actual.Should().Be("index");
        }