@@ -36,12 +36,14 @@ public async Task GetProductInfoAsync_ShouldReturnProductInfo_WhenApiRespondsSuc
3636
3737 #region GetProductInfoAsync - SupportsJsonProjectLoadService
3838
39- //TODO: Add more test cases for TKS versions as well. Different product name
4039 [ Theory ]
4140 [ InlineData ( "KEPServerEX" , "12" , 6 , 17 , true ) ] // Supports JSON Project Load Service (6.17+)
4241 [ InlineData ( "KEPServerEX" , "12" , 6 , 16 , false ) ] // Does not support it (6.16)
43- [ InlineData ( "ThingWorxKepwareEdge" , "13" , 1 , 10 , true ) ] // Supports it (1.10+)
42+ [ InlineData ( "ThingworxKepwareServer" , "12" , 6 , 17 , true ) ] // Supports JSON Project Load Service (6.17+)
43+ [ InlineData ( "ThingworxKepwareServer" , "12" , 6 , 16 , false ) ] // Does not support it (6.16)
44+ [ InlineData ( "ThingWorxKepwareEdge" , "13" , 1 , 10 , true ) ] // Supports JSON Project Load Service (1.10+)
4445 [ InlineData ( "ThingWorxKepwareEdge" , "13" , 1 , 9 , false ) ] // Does not support it (1.9)
46+ [ InlineData ( "Kepware Edge" , "13" , 1 , 0 , true ) ] // Supports JSON Project Load Service
4547 [ InlineData ( "UnknownProduct" , "99" , 10 , 0 , false ) ] // Unknown product, should be false
4648 public async Task GetProductInfoAsync_ShouldReturnCorrect_SupportsJsonProjectLoadService (
4749 string productName , string productId , int majorVersion , int minorVersion , bool expectedResult )
@@ -62,8 +64,10 @@ public async Task GetProductInfoAsync_ShouldReturnCorrect_SupportsJsonProjectLoa
6264 #region GetProductInfoAsync - ProductType
6365
6466 [ Theory ]
65- [ InlineData ( "KEPServerEX" , "12" , ProductType . KEPServerEX ) ]
66- [ InlineData ( "ThingWorxKepwareEdge" , "13" , ProductType . ThingWorxKepwareEdge ) ]
67+ [ InlineData ( "KEPServerEX" , "12" , ProductType . KepwareServer ) ]
68+ [ InlineData ( "ThingworxKepwareServer" , "12" , ProductType . KepwareServer ) ]
69+ [ InlineData ( "ThingWorxKepwareEdge" , "13" , ProductType . KepwareEdge ) ]
70+ [ InlineData ( "Kepware Edge" , "13" , ProductType . KepwareEdge ) ]
6771 [ InlineData ( "UnknownProduct" , "99" , ProductType . Unknown ) ]
6872 [ InlineData ( "InvalidProduct" , "abc" , ProductType . Unknown ) ] // Invalid ID, should be Unknown
6973 public async Task GetProductInfoAsync_ShouldReturnCorrect_ProductType (
0 commit comments