Skip to content

Commit 1aa8233

Browse files
author
Andrew Omondi
committed
Add extra test
1 parent 72e0a33 commit 1aa8233

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmFunctionOperationHandlerTests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
44
// ------------------------------------------------------------
55

6+
using System;
67
using System.Collections.Generic;
78
using System.Linq;
89
using 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
{

0 commit comments

Comments
 (0)