public void GetUniqueFriendlyId_Test() { var apiDesc = apiDescription("asdf", "POST"); string friendlyId = apiDesc.FriendlyId(); string friendlyId2 = apiDesc.FriendlyId2(); Assert.AreNotEqual(friendlyId, friendlyId2); var operationNames = new HashSet <string> { friendlyId, friendlyId2 }; var swaggerGenerator = new SwaggerGenerator(null, null, null); string uniqueFriendlyId = swaggerGenerator.GetUniqueFriendlyId(apiDesc, operationNames); Assert.AreNotEqual(friendlyId2, uniqueFriendlyId); }