Пример #1
0
        public void TestName()
        {
            var expected   = typeof(Subject).GetTypeInfo();
            var @namespace = NamespaceFormatter.Default.Get(expected);
            var aliases    = new Names(new TypedTable <string>(DefaultNames.Default));
            var formatter  = new TypeFormatter(aliases);
            var partitions = new AssemblyTypePartitions(PartitionedTypeSpecification.Default, formatter);
            var type       = new PartitionedTypeCandidates(TypeLoader.Default, partitions)
                             .Get(new Identity(formatter.Get(expected), @namespace))
                             .Only();

            Assert.Equal(expected, type);
        }