public void ShouldNotChangeStringWhenClassIsNotGeneric() { string originalClass = typeof(String).AssemblyQualifiedName; string translatedClass = NotationHelper.ParseClrNotationToGenericName(originalClass); Assert.AreEqual(originalClass, translatedClass); }
public void ShouldChangeStringToNamedArgumentWhenClassIsGenericWith11GenericParameters() { string originalClass = typeof(GenericClass11 <, , , , , , , , , ,>).AssemblyQualifiedName; string translatedClass = NotationHelper.ParseClrNotationToGenericName(originalClass); Assert.AreNotEqual(originalClass, translatedClass); Assert.IsTrue(translatedClass.StartsWith("SmartClientFactoryPackage.Tests.GenericClass11<A,B,C,D,E,F,G,H,I,J,K>")); }
public void ShouldChangeStringWhenClassIsGeneric() { string originalClass = typeof(GenericClass <string>).AssemblyQualifiedName; string translatedClass = NotationHelper.ParseClrNotationToGenericName(originalClass); Assert.AreNotEqual(originalClass, translatedClass); Assert.IsTrue(translatedClass.StartsWith("SmartClientFactoryPackage.Tests.GenericClass<String>")); }