using AsbCloudApp.Data.DetectedOperation; using Xunit; namespace AsbCloudInfrastructure.Tests.Services.DetectedOperations; public class EnabledSubsystemsTests { [Fact] public void Create_enable_subsystem_with_the_systems_turned_off() { //act EnabledSubsystems enableSubsystem = 0; //arrange Assert.False(enableSubsystem.IsAutoRotor); Assert.False(enableSubsystem.IsAutoSlide); Assert.False(enableSubsystem.IsAutoConditionig); Assert.False(enableSubsystem.IsAutoSinking); Assert.False(enableSubsystem.IsAutoLifting); Assert.False(enableSubsystem.IsAutoLiftingWithConditionig); Assert.False(enableSubsystem.IsAutoBlocknig); Assert.False(enableSubsystem.IsAutoOscillation); } [Fact] public void Create_enable_subsystem_with_the_auto_slide_subsystem() { //act EnabledSubsystems enableSubsystem = 2; //arrange Assert.True(enableSubsystem.IsAutoSlide); Assert.False(enableSubsystem.IsAutoRotor); Assert.False(enableSubsystem.IsAutoConditionig); Assert.False(enableSubsystem.IsAutoSinking); Assert.False(enableSubsystem.IsAutoLifting); Assert.False(enableSubsystem.IsAutoLiftingWithConditionig); Assert.False(enableSubsystem.IsAutoBlocknig); Assert.False(enableSubsystem.IsAutoOscillation); } }