Lines Matching refs:container
24 container.Register(peripheral, registrationPoint); in ShouldRegisterPeripheral()
31 container.Register(peripheral2, NullRegistrationPoint.Instance); in ShouldThrowWhenSecondPeripheral()
33 container.Register(peripheral, NullRegistrationPoint.Instance)); in ShouldThrowWhenSecondPeripheral()
39 container.Register(peripheral, registrationPoint); in ShouldUnregisterPeripheral()
40 container.Unregister(peripheral); in ShouldUnregisterPeripheral()
47 container.Register(peripheral2, NullRegistrationPoint.Instance); in ShouldThrowWhenUnregisteringNotRegisteredPeripheral()
49 container.Unregister(peripheral)); in ShouldThrowWhenUnregisteringNotRegisteredPeripheral()
56 container.Unregister(peripheral)); in ShouldThrowWhenUnregisteringFromEmptyContainers()
62 container.Register(peripheral, registrationPoint); in ShouldGetRegistrationPoints()
63 Assert.AreEqual(1, container.GetRegistrationPoints(peripheral).Count()); in ShouldGetRegistrationPoints()
64 …Assert.AreSame(NullRegistrationPoint.Instance, container.GetRegistrationPoints(peripheral).First()… in ShouldGetRegistrationPoints()
70 Assert.IsEmpty(container.GetRegistrationPoints(peripheral)); in ShouldGetEmptyRegistrationPoints()
71 container.Register(peripheral, registrationPoint); in ShouldGetEmptyRegistrationPoints()
72 container.Unregister(peripheral); in ShouldGetEmptyRegistrationPoints()
73 Assert.IsEmpty(container.GetRegistrationPoints(peripheral)); in ShouldGetEmptyRegistrationPoints()
79 container.Register(peripheral, registrationPoint); in ShouldGetRegisteredPeripheralAsChildren()
80 Assert.AreEqual(1, container.GetRegistrationPoints(peripheral).Count()); in ShouldGetRegisteredPeripheralAsChildren()
81 Assert.AreSame(peripheral, container.Children.First().Peripheral); in ShouldGetRegisteredPeripheralAsChildren()
82 … Assert.AreSame(NullRegistrationPoint.Instance, container.Children.First().RegistrationPoint); in ShouldGetRegisteredPeripheralAsChildren()
88 Assert.IsEmpty(container.Children); in ShouldGetEmptyChildren()
89 container.Register(peripheral, registrationPoint); in ShouldGetEmptyChildren()
90 container.Unregister(peripheral); in ShouldGetEmptyChildren()
91 Assert.IsEmpty(container.Children); in ShouldGetEmptyChildren()
97 container.Register(peripheral, registrationPoint); in ShouldRegister2ndAfterUnregistering()
98 container.Unregister(peripheral); in ShouldRegister2ndAfterUnregistering()
99 container.Register(peripheral2, registrationPoint); in ShouldRegister2ndAfterUnregistering()
112 container = new NullRegistrationPointPeripheralContainerMock(machine); in SetUp()
114 machine.SystemBus.Register(container, sysbusRegistrationPoint); in SetUp()
120 private NullRegistrationPointPeripheralContainerMock container; field in Antmicro.Renode.UnitTests.NullRegistrationPointPeripheralContainerTests