public void ExtractGenericInterface_MultipleDefinitionsOnSameType()
        {
            // Arrange
            var type = typeof(TwoIEnumerableImplementationsOnSameClass);

            // Act
            var result = ClosedGenericMatcher.ExtractGenericInterface(type, typeof(IEnumerable <>));

            // Sort
            Assert.Equal(typeof(IEnumerable <int>), result);
        }
        public void ExtractGenericInterface_ReturnsExpectedType(
            Type queryType,
            Type interfaceType,
            Type expectedResult)
        {
            // Arrange & Act
            var result = ClosedGenericMatcher.ExtractGenericInterface(queryType, interfaceType);

            // Assert
            Assert.Equal(expectedResult, result);
        }