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); }
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); }