public void ProceedNextState_Correctly() { var ebatchSheet = new EbatchSheetEntity.EbatchSheet() { CurrentState = EbatchState.ProductionReview }; var expectNextState = EbatchState.ChillerReview; Assert.Equal(expectNextState.Value, ebatchSheet.ProceedNextState(EbatchState.ChillerReview).Value); }
public void ProceedNextState_InCorrectly() { var ebatchSheet = new EbatchSheetEntity.EbatchSheet() { CurrentState = EbatchState.ProductionReview }; var nextState = EbatchState.Completed; Assert.Throws <InvalidStateChange>(() => ebatchSheet.ProceedNextState(nextState)); }