public void EnsureValidFolderPath_ThrowsIfPageNameDoesNotStartWithLeadingSlash(string folderPath) { // Arrange // Act & Assert var ex = ExceptionAssert.ThrowsArgument( () => PageConventionCollection.EnsureValidFolderPath(folderPath), "folderPath", "Path must be a root relative path that starts with a forward slash '/'."); }
public void EnsureValidFolderPath_ThrowsIfPathIsNullOrEmpty(string folderPath) { // Arrange // Act & Assert var ex = ExceptionAssert.ThrowsArgument( () => PageConventionCollection.EnsureValidFolderPath(folderPath), "folderPath", "Value cannot be null or empty."); }