public void RegisterObjectWithContract() { var o = new NonAttributedComponent(); _context.ForObject(o).RegisterWith <INonAttributedContract>(); var c = _context.GetComponent <INonAttributedContract>(); Assert.IsNotNull(c); Assert.IsTrue(ReferenceEquals(c, o)); }