Exemplo n.º 1
0
        public void WithCharacteristicValue_ValueForThisCharacteristicNotSpecifiedYet_ShouldAddValueToCharacteristicValues()
        {
            //Arrange
            var characteristicValue = CreateCharacteristicValue();

            DefaultComponent.WithCharacteristicValue(characteristicValue);

            Assert.That(DefaultComponent.CharacteristicValues.Contains(characteristicValue));
        }
Exemplo n.º 2
0
        public void WithCharacteristicValue_ValueForCharacteristicNotSpecifiedYet_ShouldAttachCharacteristicToComponent()
        {
            //Arrange
            var characteristicValue = CreateCharacteristicValue();

            DefaultComponent.WithCharacteristicValue(characteristicValue);

            Assert.That(characteristicValue.Component.SameIdentityAs(DefaultComponent));
        }
Exemplo n.º 3
0
 public void WithCharacteristicValue_NullCharacteristic_ShouldThrowArgumentNullException()
 {
     Assert.That(() => DefaultComponent.WithCharacteristicValue(null),
                 Throws.InstanceOf <ArgumentNullException>());
 }