Пример #1
0
 public ComponentCharacteristic CreateRandomCharacteristic(int index)
 {
     return(CreateCharacteristic(
                NamesGenerator.CharacteristicName(index),
                ComponentType.PowerSupply)
            .WithPattern("bool pattern"));
 }
Пример #2
0
 public void Constructor_InvalidType_ShouldThrowArgumentException()
 {
     Assert.That(() => new FakeCharacteristic(
                     NamesGenerator.CharacteristicName(),
                     (ComponentType)12345),
                 Throws.ArgumentException);
 }