Lines Matching refs:Assert
25 Assert.IsTrue(machine.IsRegistered(peripheral)); in ShouldRegisterPeripheral()
32 Assert.Throws<RegistrationException>(() => in ShouldThrowWhenSecondPeripheral()
41 Assert.IsFalse(machine.IsRegistered(peripheral)); in ShouldUnregisterPeripheral()
48 Assert.Throws<RegistrationException>(() => in ShouldThrowWhenUnregisteringNotRegisteredPeripheral()
55 Assert.Throws<RegistrationException>(() => in ShouldThrowWhenUnregisteringFromEmptyContainers()
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()
73 Assert.IsEmpty(container.GetRegistrationPoints(peripheral)); in ShouldGetEmptyRegistrationPoints()
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()
91 Assert.IsEmpty(container.Children); in ShouldGetEmptyChildren()
100 Assert.IsFalse(machine.IsRegistered(peripheral)); in ShouldRegister2ndAfterUnregistering()
101 Assert.IsTrue(machine.IsRegistered(peripheral2)); in ShouldRegister2ndAfterUnregistering()