public static void WhenTelling(
     this MarbleTest marbleTest,
     string sequence,
     IActorRef toWhom,
     Func <string, object> whatToSend,
     IActorRef sender = null) =>
 marbleTest.WhenTelling(sequence, toWhom, marble => Task.FromResult(whatToSend(marble)), sender);
 public static void WhenTelling <T>(
     this MarbleTest marbleTest,
     string sequence,
     IActorRef toWhom,
     Func <string, Task <T> > whatToSend,
     IActorRef sender = null) =>
 marbleTest.WhenDoing(sequence, async marble => toWhom.Tell(await whatToSend(marble), sender));
 public static void ExpectMsgs(
     this MarbleTest marbleTest,
     string sequence,
     TestProbe probe,
     Action <string, object> assertion) =>
 marbleTest.ExpectMsgs <object>(
     sequence,
     probe,
     assertion);
 public static void ExpectMsgs <T>(
     this MarbleTest marbleTest,
     string sequence,
     TestProbe probe,
     Action <string, T> assertion) =>
 marbleTest.Expect(
     sequence,
     probe.EventProducer <T>(),
     assertion);
Exemplo n.º 5
0
 public MarbleTestTests()
 {
     _marbleTest = new MarbleTest(() => Task.FromResult(true), _ => Task.FromResult(true));
 }