public void Start_ProgramStateStartedOrIdleBasedOnValveManagerStart(ActionStatus actionStatus, ProgramState expectedState) { //Arrange valveManagerMock.Setup(x => x.Start(testSettings, valveType)).Returns(actionStatus); //Act testerService.Start(testSettings, valveType); //Assert Assert.AreEqual(expectedState, testerService.State); }
public void Start_valveManagerStartReturnsOk_StateIsStarted() { testerService.Start(testSettings); Assert.AreEqual(ProgramState.Started, testerService.State); }