示例#1
0
        public void ShouldNotChangeEmptyToCLRNotation()
        {
            string genericClass    = "SmartClientFactoryPackage.Tests.NormalClass";
            string translatedClass = NotationHelper.ParseGenericNameToCLRNotation(genericClass);

            Assert.AreEqual(genericClass, translatedClass);
            Assert.IsTrue(translatedClass.StartsWith("SmartClientFactoryPackage.Tests.NormalClass"));
        }
示例#2
0
        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"));
        }