예제 #1
0
        public void ShouldNotChangeStringWhenClassIsNotGeneric()
        {
            string originalClass   = typeof(String).AssemblyQualifiedName;
            string translatedClass = NotationHelper.ParseClrNotationToGenericName(originalClass);

            Assert.AreEqual(originalClass, translatedClass);
        }
예제 #2
0
        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>"));
        }
예제 #3
0
        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>"));
        }