public void testGetStateAllServicesOk() { SystemState state = new SystemState(SystemState.ALL_SERVICES_OK); Assert.That(state.getState(), Is.EqualTo(SystemState.ALL_SERVICES_OK)); }
public void testGetDescriptionForUnknownState() { Assert.That(SystemState.getDescriptionForState(42), Is.EqualTo("Unknown state")); Assert.That(SystemState.getDescriptionForState(-42), Is.EqualTo("Unknown state")); }
public void testGetDescriptionForCornerCases() { Assert.That(SystemState.getDescriptionForState(7), Is.EqualTo("Unknown state")); Assert.That(SystemState.getDescriptionForState(-1), Is.EqualTo("Unknown state")); }
public void testGetDescriptionForStateReportServiceFailure() { Assert.That(SystemState.getDescriptionForState(SystemState.REPORT_SERVICE_FAILURE), Is.EqualTo("ReportService Failure")); }
public void testGetDescriptionForStateCommunicationOk() { Assert.That(SystemState.getDescriptionForState(SystemState.COMMUNICATION_OK), Is.EqualTo("Communication OK")); }
public void testGetDescriptionForStateAllServicesOk() { Assert.That(SystemState.getDescriptionForState(SystemState.ALL_SERVICES_OK), Is.EqualTo("All Services OK")); }
public void testGetStateReportServiceFailure() { SystemState state = new SystemState(SystemState.REPORT_SERVICE_FAILURE); Assert.That(state.getState(), Is.EqualTo(SystemState.REPORT_SERVICE_FAILURE)); }
public void testGetStateCommunicationOk() { SystemState state = new SystemState(SystemState.COMMUNICATION_OK); Assert.That(state.getState(), Is.EqualTo(SystemState.COMMUNICATION_OK)); }