File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
test/Microsoft.OpenAPI.OData.Reader.Tests/Operation Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 3
3
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
4
4
// ------------------------------------------------------------
5
5
6
+ using System ;
6
7
using System . Collections . Generic ;
7
8
using System . Linq ;
8
9
using System . Xml . Linq ;
@@ -382,6 +383,14 @@ public void CreateOperationForComposableOverloadEdmFunctionReturnsCorrectOperati
382
383
Assert . Equal ( "Customers.Customer.MyFunction1.MyFunction2-4d93" , operation2 . OperationId ) ;
383
384
Assert . Equal ( "Customers.Customer.MyFunction1.MyFunction2-a2b2" , operation3 . OperationId ) ;
384
385
Assert . Equal ( "Customers.Customer.MyFunction1.MyFunction2-7bea" , operation4 . OperationId ) ;
386
+ var operationIds = new HashSet < string > ( StringComparer . OrdinalIgnoreCase )
387
+ {
388
+ operation1 . OperationId ,
389
+ operation2 . OperationId ,
390
+ operation3 . OperationId ,
391
+ operation4 . OperationId
392
+ } ;
393
+ Assert . Equal ( 4 , operationIds . Count ) ; // All are unique as the hashset size is unchanged!
385
394
}
386
395
else
387
396
{
You can’t perform that action at this time.
0 commit comments