public void ShouldNotChangeEmptyToCLRNotation() { string genericClass = "SmartClientFactoryPackage.Tests.NormalClass"; string translatedClass = NotationHelper.ParseGenericNameToCLRNotation(genericClass); Assert.AreEqual(genericClass, translatedClass); Assert.IsTrue(translatedClass.StartsWith("SmartClientFactoryPackage.Tests.NormalClass")); }
public void ShouldChangeNamedArgumentToCLRNotation() { string genericClass = "SmartClientFactoryPackage.Tests.GenericClass2<T,G>"; string translatedClass = NotationHelper.ParseGenericNameToCLRNotation(genericClass); Assert.AreNotEqual(genericClass, translatedClass); Assert.IsTrue(translatedClass.StartsWith("SmartClientFactoryPackage.Tests.GenericClass2`2")); }