Linter/formatter pass across the full codebase. Restores required partial keyword on AXAML code-behind classes that the formatter incorrectly removed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using Shouldly;
|
|
using Xunit;
|
|
using ZB.MOM.WW.LmxOpcUa.Host.Configuration;
|
|
|
|
namespace ZB.MOM.WW.LmxOpcUa.Tests.Redundancy
|
|
{
|
|
public class RedundancyConfigurationTests
|
|
{
|
|
[Fact]
|
|
public void DefaultConfig_Disabled()
|
|
{
|
|
var config = new RedundancyConfiguration();
|
|
config.Enabled.ShouldBe(false);
|
|
}
|
|
|
|
[Fact]
|
|
public void DefaultConfig_ModeWarm()
|
|
{
|
|
var config = new RedundancyConfiguration();
|
|
config.Mode.ShouldBe("Warm");
|
|
}
|
|
|
|
[Fact]
|
|
public void DefaultConfig_RolePrimary()
|
|
{
|
|
var config = new RedundancyConfiguration();
|
|
config.Role.ShouldBe("Primary");
|
|
}
|
|
|
|
[Fact]
|
|
public void DefaultConfig_EmptyServerUris()
|
|
{
|
|
var config = new RedundancyConfiguration();
|
|
config.ServerUris.ShouldBeEmpty();
|
|
}
|
|
|
|
[Fact]
|
|
public void DefaultConfig_ServiceLevelBase200()
|
|
{
|
|
var config = new RedundancyConfiguration();
|
|
config.ServiceLevelBase.ShouldBe(200);
|
|
}
|
|
}
|
|
} |