コード例 #1
0
        public void GetGeneric_should_return_typed_generic_from_raw_type()
        {
            var baseType     = typeof(IEnumerable <>);
            var expectedType = typeof(IEnumerable <int>);

            var sut    = new TypesCache();
            var result = sut.GetGeneric(baseType, typeof(int));

            result.Should().Be(expectedType);
        }