示例#1
0
        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);
        }
示例#2
0
        public void ProceedNextState_InCorrectly()
        {
            var ebatchSheet = new EbatchSheetEntity.EbatchSheet()
            {
                CurrentState = EbatchState.ProductionReview
            };
            var nextState = EbatchState.Completed;

            Assert.Throws <InvalidStateChange>(() => ebatchSheet.ProceedNextState(nextState));
        }