akkadotnet/akka.net — pull request #464 by HCanber (2014-10-08 15:57:45+00:00)
Title: Testkit changes

### Fewer ExpectMsg
Reduce the number of ExpectMsg overloads from 15

We just had too many. The order of hint and timeout arguments could be varied (hint could be specified first, or last)
Now the order is always
``` C#
ExpectMessage(someSortOfSpectToTestIfCorrectMessage, timeout, hint)
```
`timeout` and `hint` are optional.
For example:
``` C#
ExpectMessage("test", TimeSpan.FromSeconds(2))
ExpectMessage(m=> m=="test", TimeSpan.FromSeconds(2), "message must be test")
```
This is a __breaking change__, however TestKit has not been published yet so it will only break for those that has used it from the `dev`branch.
If you get compile errors after this, just reorder the arguments according to the specification:
``` C#
ExpectMessage(someSortOfSpectToTestIfCorrectMessage, timeout, hint)
```

Discussed in https://github.com/akkadotnet/akka.net/issues/366#issuecomment-58319952

### ExpectMsgFrom
A new test function. Works like `ExpectMsg` but with an extra test that the sender is the expected one.
``` C#
ExpectMsgFrom(theExpectedSender, "ExpectedMessage);
```

### TestKit.ActorOf without optional args
`ActorOf` with optional name argument has been split to two separate functions

The reason for this is that we want to be able to use it in expressions, which does not allow optional argument calls
So without this fix, the second `ActorOf` would not be possible:
``` C#
ActorOf(()=>new MyTestActor(ActorOf()))
```

### Note
__Note__ that this also contains the commit in PR #458 so this PR should not be merged before #458.