public void NegativeTerminal() { // Act var message = new BatteryInfoMessage(_examplePayload); // Assert message.NegativeTerminal.Should().Be(92.3m); }
public void BatteryVoltage() { // Act var message = new BatteryInfoMessage(_examplePayload); // Assert message.BatteryVoltage.Should().Be(new Volt(336.64)); }
public void BatteryPower() { // Act var message = new BatteryInfoMessage(_examplePayload); // Assert message.BatteryPower.Should().Be(new Watt(33.664)); }
public void MinBatteryTemperature() { // Act var message = new BatteryInfoMessage(_examplePayload); // Assert message.MinBatteryTemperature.Should().Be(new Celsius(30.5m)); }
public void BatteryCurrent() { // Act var message = new BatteryInfoMessage(_examplePayload); // Assert message.BatteryCurrent.Should().Be(new Ampere(0.1)); }
public void IsolationResistance() { // Act var message = new BatteryInfoMessage(_examplePayload); // Assert message.IsolationResistance.Should().Be(new KiloOhm(27904m)); }
public void BmsState() { // Act var message = new BatteryInfoMessage(_examplePayload); // Assert message.BmsState.Should().Be(0); }
public void BmsNumberOfContactors() { // Act var message = new BatteryInfoMessage(_examplePayload); // Assert message.BmsNumberOfContactors.Should().Be(4); }
public void BmsChargeStatus() { // Act var message = new BatteryInfoMessage(_examplePayload); // Assert message.BmsChargeStatus.Should().Be(1); }
public void BmsChargePowerAvailable() { // Act var message = new BatteryInfoMessage(_examplePayload); // Assert message.BmsChargePowerAvailable.Should().Be(new KiloWatt(0m)); }