Example #1
0
        public void WithCharacteristicValue_ValueForThisCharacteristicNotSpecifiedYet_ShouldAddValueToCharacteristicValues()
        {
            //Arrange
            var characteristicValue = CreateCharacteristicValue();

            DefaultComponent.WithCharacteristicValue(characteristicValue);

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

            DefaultComponent.WithCharacteristicValue(characteristicValue);

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