コード例 #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);
        }
コード例 #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);
        }