Example #1
0
 public void PathBasedUrlFormat_Test_StartsWith()
 {
     PathBasedUrlFormatter.Validate("a{dependencyId}.{version}.{type}");
 }
Example #2
0
 public void PathBasedUrlFormat_Test_Invalid_Delimiter1()
 {
     PathBasedUrlFormatter.Validate("{dependencyId}}{version}.{type}");
 }
Example #3
0
 public void PathBasedUrlFormat_Test_Valid_Format()
 {
     PathBasedUrlFormatter.Validate("{dependencyId}.{version}.{type}");
     PathBasedUrlFormatter.Validate("{dependencyId}/{version}/{type}");
 }
Example #4
0
 public void PathBasedUrlFormat_Test_EndsWith()
 {
     PathBasedUrlFormatter.Validate("{dependencyId}.{version}.{type}a");
 }
Example #5
0
 public void PathBasedUrlFormat_Test_Missing_Version_Delimiter()
 {
     PathBasedUrlFormatter.Validate("{dependencyId}.{version}{type}");
 }
Example #6
0
 public void PathBasedUrlFormat_Test_Token_Ordering()
 {
     PathBasedUrlFormatter.Validate("{version}.{dependencyId}.{type}");
 }
Example #7
0
 public void PathBasedUrlFormat_Test_Missing_DependencyId_Token()
 {
     PathBasedUrlFormatter.Validate("{version}.{type}");
 }
Example #8
0
 public void PathBasedUrlFormat_Test_Missing_Type_Token()
 {
     PathBasedUrlFormatter.Validate("{dependencyId}.{version}");
 }
Example #9
0
 public void PathBasedUrlFormat_Test_Invalid_Delimiter2()
 {
     Assert.Throws <FormatException>(() => PathBasedUrlFormatter.Validate("{dependencyId}{{version}.{type}"));
 }
Example #10
0
 public void PathBasedUrlFormat_Test_Null_Or_Empty()
 {
     PathBasedUrlFormatter.Validate("");
 }
Example #11
0
 public void PathBasedUrlFormat_Test_StartsWith()
 {
     Assert.Throws <FormatException>(() => PathBasedUrlFormatter.Validate("a{dependencyId}.{version}.{type}"));
 }
Example #12
0
 public void PathBasedUrlFormat_Test_Token_Ordering()
 {
     Assert.Throws <FormatException>(() => PathBasedUrlFormatter.Validate("{version}.{dependencyId}.{type}"));
 }
Example #13
0
 public void PathBasedUrlFormat_Test_Missing_Version_Delimiter()
 {
     Assert.Throws <FormatException>(() => PathBasedUrlFormatter.Validate("{dependencyId}.{version}{type}"));
 }
Example #14
0
 public void PathBasedUrlFormat_Test_Missing_Type_Token()
 {
     Assert.Throws <FormatException>(() => PathBasedUrlFormatter.Validate("{dependencyId}.{version}"));
 }
Example #15
0
 public void PathBasedUrlFormat_Test_Null_Or_Empty()
 {
     Assert.Throws <FormatException>(() => PathBasedUrlFormatter.Validate(""));
 }