public void Initialize_ProgramStateInitializedOrErrorBasedOnActionStatuses (ActionStatus digitalIOActionStatus, ActionStatus driverActionStatus, ActionStatus valveManagerActionStatus, ProgramState expectedState) { //Arrange digitalIOMock.Setup(x => x.Initialize()).Returns(digitalIOActionStatus); driverMock.Setup(x => x.Initialize(4)).Returns(driverActionStatus); valveManagerMock.Setup(x => x.Initialize(4)).Returns(valveManagerActionStatus); //Act testerService.Initialize(4); //Assert Assert.AreEqual(expectedState, testerService.State); }
public void Initialize_AllInitialziationStatusesOk_StateIsInitialized() { testerService.Initialize(new ConfigurationSettings()); Assert.AreEqual(ProgramState.Initialized, testerService.State); }