Пример #1
0
        public void GetRelativePathString_SinglePathSection_CorrectString()
        {
            string    expected = "/FirstDirectory";
            HttpState state    = SetupHttpState();

            state.PathSections.Push("FirstDirectory");

            string result = state.GetRelativePathString();

            Assert.Equal(expected, result);
        }
Пример #2
0
        public void GetRelativePathString_EmptyPathSections_Slash()
        {
            string    expected = "/";
            HttpState state    = SetupHttpState();

            state.PathSections.Clear();

            string result = state.GetRelativePathString();

            Assert.Equal(expected, result);
        }