Apply code formatting cleanup across monitor projects
- Reindent appsettings.json and the MSBuild project files - Collapse single-statement guard blocks and tidy using and member order - Normalize XML doc indentation and file endings - Reorder BatteryMonitor test-data helpers and move the exclusion tests into their own region - Carry the same formatting through the boiler config, control, entity and test files
This commit is contained in:
@@ -50,10 +50,10 @@ public class BoilerMonitorConfigTests
|
||||
bool expected)
|
||||
{
|
||||
var config = BoilerMonitorTestData.CreateConfig(
|
||||
boilerPowerEntityId: powerEntityId,
|
||||
boilerSwitchEntityId: switchEntityId,
|
||||
pollIntervalSeconds: pollIntervalSeconds,
|
||||
heatingPowerThresholdWatts: heatingPowerThresholdWatts);
|
||||
powerEntityId,
|
||||
switchEntityId,
|
||||
pollIntervalSeconds,
|
||||
heatingPowerThresholdWatts);
|
||||
|
||||
config.IsFullyConfigured.Should().Be(expected, scenario);
|
||||
}
|
||||
@@ -62,9 +62,9 @@ public class BoilerMonitorConfigTests
|
||||
public void IsFullyConfigured_WhenFullyPopulated_ShouldNotDependOnEntityIdCasingOrPadding()
|
||||
{
|
||||
var config = BoilerMonitorTestData.CreateConfig(
|
||||
boilerPowerEntityId: " sensor.sonoff_1002230e32_power ",
|
||||
boilerSwitchEntityId: "SWITCH.SONOFF_1002230E32");
|
||||
" sensor.sonoff_1002230e32_power ",
|
||||
"SWITCH.SONOFF_1002230E32");
|
||||
|
||||
config.IsFullyConfigured.Should().BeTrue("entity ids are only checked for non-whitespace content");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user