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