Added expectMsgPF, expectTerminated, and receiveWhile to the TestKit along with a TestKitSpec test class.
Fixed issue with DeadLetter Mailbox returning false for Mailbox.isTerminated. This is incorrect because when the actor is stopped and mailboxes are switched, calling actor.cell.isClosed would return false. This is now updated to return true instead.
In this PR
false
forMailbox.isTerminated
. This is incorrect because when the actor is stopped and mailboxes are switched, callingactor.cell.isClosed
would returnfalse
. This is now updated to returntrue
instead.