Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public void Start_valveManagerStartReturnsOk_StateIsStarted()
 {
     testerService.Start(testSettings);
     Assert.AreEqual(ProgramState.Started, testerService.State);
 }