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 33// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
44// ------------------------------------------------------------
55
6+ using System ;
67using System . Collections . Generic ;
78using System . Linq ;
89using System . Xml . Linq ;
@@ -382,6 +383,14 @@ public void CreateOperationForComposableOverloadEdmFunctionReturnsCorrectOperati
382383 Assert . Equal ( "Customers.Customer.MyFunction1.MyFunction2-4d93" , operation2 . OperationId ) ;
383384 Assert . Equal ( "Customers.Customer.MyFunction1.MyFunction2-a2b2" , operation3 . OperationId ) ;
384385 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!
385394 }
386395 else
387396 {
You can’t perform that action at this time.
0 commit comments