public ComponentCharacteristic CreateRandomCharacteristic(int index) { return(CreateCharacteristic( NamesGenerator.CharacteristicName(index), ComponentType.PowerSupply) .WithPattern("bool pattern")); }
public void Constructor_InvalidType_ShouldThrowArgumentException() { Assert.That(() => new FakeCharacteristic( NamesGenerator.CharacteristicName(), (ComponentType)12345), Throws.ArgumentException); }