Searched refs:peripheral2 (Results 1 – 2 of 2) sorted by relevance
29 var peripheral2 = new Mock<IDoubleWordPeripheral>().Object; in ShouldThrowOnRegisteringAnotherPeripheralWithTheSameName()31 machine.SystemBus.Register(peripheral2, 10.By(10)); in ShouldThrowOnRegisteringAnotherPeripheralWithTheSameName()34 … Assert.Throws(typeof(RecoverableException), () => machine.SetLocalName(peripheral2, "name")); in ShouldThrowOnRegisteringAnotherPeripheralWithTheSameName()53 var peripheral2 = new Mock<IDoubleWordPeripheral>().Object; in ShouldFindPeripheralByPathWhenThereAreTwo()55 machine.SystemBus.Register(peripheral2, 10.By(10)); in ShouldFindPeripheralByPathWhenThereAreTwo()57 machine.SetLocalName(peripheral2, "second"); in ShouldFindPeripheralByPathWhenThereAreTwo()60 Assert.AreEqual(peripheral2, machine["sysbus.second"]); in ShouldFindPeripheralByPathWhenThereAreTwo()
31 container.Register(peripheral2, NullRegistrationPoint.Instance); in ShouldThrowWhenSecondPeripheral()47 container.Register(peripheral2, NullRegistrationPoint.Instance); in ShouldThrowWhenUnregisteringNotRegisteredPeripheral()99 container.Register(peripheral2, registrationPoint); in ShouldRegister2ndAfterUnregistering()101 Assert.IsTrue(machine.IsRegistered(peripheral2)); in ShouldRegister2ndAfterUnregistering()111 peripheral2 = new PeripheralMock(); in SetUp()119 private PeripheralMock peripheral2; field in Antmicro.Renode.UnitTests.NullRegistrationPointPeripheralContainerTests