@@ -14,24 +14,19 @@ public class AssetTagsBasicTest
1414 [ Fact ]
1515 public async Task AssetTags_BasicFunctionality_Test ( )
1616 {
17- // Basic test to verify Tags method exists and works
1817 AssetLibrary assetLibrary = client . AssetLibrary ( ) ;
1918
20- // This should not throw an exception
2119 assetLibrary . Tags ( new string [ ] { "test" } ) ;
2220
23- // Verify the method returns AssetLibrary for chaining
2421 Assert . NotNull ( assetLibrary ) ;
2522
26- // Test with multiple tags
2723 assetLibrary . Tags ( new string [ ] { "tag1" , "tag2" , "tag3" } ) ;
2824 Assert . NotNull ( assetLibrary ) ;
2925 }
3026
3127 [ Fact ]
3228 public async Task AssetTags_ChainWithOtherMethods_Test ( )
3329 {
34- // Test chaining Tags with other methods
3530 AssetLibrary assetLibrary = client . AssetLibrary ( ) ;
3631
3732 var chainedLibrary = assetLibrary
@@ -47,44 +42,32 @@ public async Task AssetTags_NullAndEmptyHandling_Test()
4742 {
4843 AssetLibrary assetLibrary = client . AssetLibrary ( ) ;
4944
50- // Should handle null gracefully
5145 assetLibrary . Tags ( null ) ;
5246 Assert . NotNull ( assetLibrary ) ;
5347
54- // Should handle empty array gracefully
5548 assetLibrary . Tags ( new string [ ] { } ) ;
5649 Assert . NotNull ( assetLibrary ) ;
5750 }
5851
5952 [ Fact ]
6053 public void AssetTags_MethodExists_Test ( )
6154 {
62- // Verify the Tags method exists with correct signature
6355 AssetLibrary assetLibrary = client . AssetLibrary ( ) ;
6456
65- // This will compile only if the method exists with correct signature
6657 var result = assetLibrary . Tags ( new string [ ] { "test" } ) ;
6758
68- // Should return AssetLibrary type for method chaining
6959 Assert . IsType < AssetLibrary > ( result ) ;
7060 }
7161
7262 [ Fact ]
7363 public void AssetTags_MultipleCalls_ShouldNotThrowException_Test ( )
7464 {
75- // Test multiple calls to Tags() method on same instance
7665 AssetLibrary assetLibrary = client . AssetLibrary ( ) ;
7766
78- // First call
7967 assetLibrary . Tags ( new string [ ] { "tag1" , "tag2" } ) ;
80-
81- // Second call should not throw "An item with the same key has already been added" exception
8268 assetLibrary . Tags ( new string [ ] { "tag3" , "tag4" } ) ;
83-
84- // Third call with different tags
8569 assetLibrary . Tags ( new string [ ] { "newtag1" , "newtag2" , "newtag3" } ) ;
8670
87- // Should return AssetLibrary type for method chaining
8871 Assert . IsType < AssetLibrary > ( assetLibrary ) ;
8972 }
9073 }
0 commit comments