public void Work_WhenDoneProcessing_SetsNextOpAndReturns() { _subject.AddToQueue(_wo1); IWork answer = null; for (int i = 0; i < 4; i++) { answer = _subject.Work(_dayTime, _bigData, wcName); } Assert.IsNotNull(answer); Assert.AreEqual(1, answer.Id); Assert.IsNull(_subject.CurrentWo); _wo1.Received().SetNextOp(); }