示例#1
0
        public ClassTests()
        {
            _baseClass           = Architecture.GetClassOfType(typeof(BaseClass));
            _childClass          = Architecture.GetClassOfType(typeof(ChildClass));
            _duplicateChildClass = _baseClass;
            var backingType = Architecture.GetITypeOfType(typeof(PropertyType));

            _misMatchType =
                new Type(backingType.FullName, backingType.Name, backingType.Assembly, backingType.Namespace,
                         backingType.Visibility, backingType.IsNested);

            _implementsInterface  = Architecture.GetClassOfType(typeof(InheritingType));
            _implementedInterface = Architecture.GetInterfaceOfType(typeof(IInheritingInterface));
            _chainedInterface     = Architecture.GetInterfaceOfType(typeof(IInheritedTestInterface));

            _classEquivalencyTestData = new ClassEquivalencyTestData(typeof(ClassWithConstructors));
        }
 public void TypeNotInArchitectureNotFound()
 {
     Assert.Throws <TypeDoesNotExistInArchitecture>(() => _architecture.GetITypeOfType(typeof(Guid)));
 }