Lines Matching refs:peripheral
24 container.Register(peripheral, registrationPoint); in ShouldRegisterPeripheral()
25 Assert.IsTrue(machine.IsRegistered(peripheral)); in ShouldRegisterPeripheral()
33 container.Register(peripheral, NullRegistrationPoint.Instance)); in ShouldThrowWhenSecondPeripheral()
39 container.Register(peripheral, registrationPoint); in ShouldUnregisterPeripheral()
40 container.Unregister(peripheral); in ShouldUnregisterPeripheral()
41 Assert.IsFalse(machine.IsRegistered(peripheral)); in ShouldUnregisterPeripheral()
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 …ssert.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()
89 container.Register(peripheral, registrationPoint); in ShouldGetEmptyChildren()
90 container.Unregister(peripheral); in ShouldGetEmptyChildren()
97 container.Register(peripheral, registrationPoint); in ShouldRegister2ndAfterUnregistering()
98 container.Unregister(peripheral); in ShouldRegister2ndAfterUnregistering()
100 Assert.IsFalse(machine.IsRegistered(peripheral)); in ShouldRegister2ndAfterUnregistering()
110 peripheral = new PeripheralMock(); in SetUp()
118 private PeripheralMock peripheral; field in Antmicro.Renode.UnitTests.NullRegistrationPointPeripheralContainerTests