예제 #1
0
 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 '/'.");
 }
예제 #2
0
 public void EnsureValidFolderPath_ThrowsIfPathIsNullOrEmpty(string folderPath)
 {
     // Arrange
     // Act & Assert
     var ex = ExceptionAssert.ThrowsArgument(
         () => PageConventionCollection.EnsureValidFolderPath(folderPath),
         "folderPath",
         "Value cannot be null or empty.");
 }