Ejemplo n.º 1
0
        public void FormatsOpenGenericsWithMultipleParams()
        {
            var type      = typeof(Func <, ,>);
            var converter = new TypeDisplayConverter();

            var value = converter.Convert(type, null, null, CultureInfo.CurrentCulture);

            Assert.AreEqual("Func<T1, T2, TResult>", value);
        }
Ejemplo n.º 2
0
        public void FormatsOpenGenerics()
        {
            var type      = typeof(List <>);
            var converter = new TypeDisplayConverter();

            var value = converter.Convert(type, null, null, CultureInfo.CurrentCulture);

            Assert.AreEqual("List<T>", value);
        }