コード例 #1
0
        public void can_read_a_direct_type_name_with_options()
        {
            var foundType = ContractStack.FirstKnownType("Example.Types.IMetadataFile;Example.Types.IFile", null);

            Assert.That(foundType,
                        Is.EqualTo(typeof(IMetadataFile)));
        }
コード例 #2
0
        public void can_get_first_available_real_type()
        {
            var foundType = ContractStack.FirstKnownType(sample, null);

            Assert.That(foundType,
                        Is.EqualTo(typeof(IMetadataFile)));
        }