예제 #1
0
        public void ConstructorParameterAreRequired()
        {
            _context.UnregisterFamily(typeof(ISampleContractA));
            _context.Register(typeof(MultiConstructorsWithDefaultAndMarked));

            _context.GetComponent <MultiConstructorsWithDefaultAndMarked>();
        }
        public void GetAfterUnregisterFamilyReturnsNull()
        {
            _context.UnregisterFamily(typeof(EmptyComponentAndContract));
            var c = _context.GetComponent <EmptyComponentAndContract>();

            Assert.IsNull(c);
        }
예제 #3
0
 public void GetAfterUnregisterPlugThrows()
 {
     _context.UnregisterFamily(typeof(EmptyComponentAndContract));
     _context.GetComponent <ComponentWithFieldPlug>();
 }