public void GetRelativePathString_SinglePathSection_CorrectString() { string expected = "/FirstDirectory"; HttpState state = SetupHttpState(); state.PathSections.Push("FirstDirectory"); string result = state.GetRelativePathString(); Assert.Equal(expected, result); }
public void GetRelativePathString_EmptyPathSections_Slash() { string expected = "/"; HttpState state = SetupHttpState(); state.PathSections.Clear(); string result = state.GetRelativePathString(); Assert.Equal(expected, result); }