Exemplo n.º 1
0
        public void NestedCrossAssemblySafeTypeName()
        {
            var s = SafeType.GetShortTypeName(typeof(List <Formula <string> >));

            Assert.AreEqual("System.Collections.Generic.List`1[[FrEee.Modding.Formula`1[[System.String, mscorlib]], FrEee.Core]], mscorlib", s);
        }
Exemplo n.º 2
0
        public void NestedDictionaries()
        {
            var s = SafeType.GetShortTypeName(typeof(IDictionary <AbilityRule, IDictionary <int, Formula <int> > >));

            Assert.AreEqual("System.Collections.Generic.IDictionary`2[[FrEee.Game.Objects.Abilities.AbilityRule, FrEee.Core],[System.Collections.Generic.IDictionary`2[[System.Int32, mscorlib],[FrEee.Modding.Formula`1[[System.Int32, mscorlib]], FrEee.Core]], mscorlib]], mscorlib", s);
        }