@@ -73,7 +73,7 @@ public void Test_get_groups_with_top_level_only_ignores_subgroups()
7373 var groups = client . Groups . GetAsync ( new Models . GroupQuery { TopLevelOnly = true } ) ;
7474
7575 var expected = new string [ ] { "user1" , "tlg" } ;
76- Assert . That ( groups . Select ( g => g . FullPath ) , Is . EquivalentTo ( expected ) ) ;
76+ Assert . That ( groups . AsEnumerable ( ) . Select ( g => g . FullPath ) , Is . EquivalentTo ( expected ) ) ;
7777 }
7878
7979 [ Test ]
@@ -174,7 +174,7 @@ public void Test_get_subgroups_descendants_by_fullpath()
174174 var group = client . Groups . GetSubgroupsByFullPathAsync ( "tlg" , new Models . SubgroupQuery { IncludeDescendants = true } ) ;
175175
176176 var expected = new string [ ] { "tlg/sg1" , "tlg/sg1/sg1_1" , "tlg/sg2" , "tlg/sg2/sg2_1" } ;
177- Assert . That ( group . Select ( g => g . FullPath ) , Is . EquivalentTo ( expected ) ) ;
177+ Assert . That ( group . AsEnumerable ( ) . Select ( g => g . FullPath ) , Is . EquivalentTo ( expected ) ) ;
178178 }
179179
180180 [ Test ]
@@ -186,7 +186,7 @@ public void Test_get_subgroups_descendants_by_id()
186186 var group = client . Groups . GetSubgroupsByIdAsync ( 1 , new Models . SubgroupQuery { IncludeDescendants = true } ) ;
187187
188188 var expected = new string [ ] { "tlg/sg1" , "tlg/sg1/sg1_1" , "tlg/sg2" , "tlg/sg2/sg2_1" } ;
189- Assert . That ( group . Select ( g => g . FullPath ) , Is . EquivalentTo ( expected ) ) ;
189+ Assert . That ( group . AsEnumerable ( ) . Select ( g => g . FullPath ) , Is . EquivalentTo ( expected ) ) ;
190190 }
191191
192192 [ Test ]
@@ -198,7 +198,7 @@ public void Test_get_subgroups_descendants_of_subgroup_by_fullpath()
198198 var group = client . Groups . GetSubgroupsAsync ( "tlg/sg2" , new Models . SubgroupQuery { IncludeDescendants = true } ) ;
199199
200200 var expected = new string [ ] { "tlg/sg2/sg2_1" } ;
201- Assert . That ( group . Select ( g => g . FullPath ) , Is . EquivalentTo ( expected ) ) ;
201+ Assert . That ( group . AsEnumerable ( ) . Select ( g => g . FullPath ) , Is . EquivalentTo ( expected ) ) ;
202202 }
203203
204204 [ Test ]
@@ -210,7 +210,7 @@ public void Test_get_subgroups_descendants_of_subgroup_by_id()
210210 var group = client . Groups . GetSubgroupsAsync ( 2 , new Models . SubgroupQuery { IncludeDescendants = true } ) ;
211211
212212 var expected = new string [ ] { "tlg/sg1/sg1_1" } ;
213- Assert . That ( group . Select ( g => g . FullPath ) , Is . EquivalentTo ( expected ) ) ;
213+ Assert . That ( group . AsEnumerable ( ) . Select ( g => g . FullPath ) , Is . EquivalentTo ( expected ) ) ;
214214 }
215215
216216 [ Test ]
0 commit comments