public void ResolvePath_DoesNotTraversePastApplicationRoot(string input) { // Arrange var result = ViewEnginePath.ResolvePath(input); // Assert Assert.Same(input, result); }
public void ResolvePath_DoesNotModifyPathsWithoutTraversals(string input) { // Arrange & Act var result = ViewEnginePath.ResolvePath(input); // Assert Assert.Same(input, result); }
public void ResolvePath_ResolvesPathTraversals(string input, string expected) { // Arrange & Act var result = ViewEnginePath.ResolvePath(input); // Assert Assert.Equal(expected, result); }