コード例 #1
0
        public void TypeLoaderConsistency(Type t)
        {
            var signature = TypeSignature.FromType(t);
            var ilSpy     = cx.GetTypeDef(signature);

            Assert.Equal(SymbolFormatter.TypeDefToString(t), SymbolFormatter.TypeDefToString(ilSpy));
            Assert.Equal(signature, SymbolLoader.Type(ilSpy));
        }