コード例 #1
0
 public void ShouldNotHandleTupleInBolt()
 {
     var subjectUnderTest = new StormNext();
     var bolt = Substitute.For<IBolt>();
     Assert.That(() => subjectUnderTest.BeProcessesBy(bolt),
         Throws.InstanceOf<NotImplementedException>());
 }
コード例 #2
0
 public void ShouldBeAbleToHandleASpout()
 {
     var spout = Substitute.For<ISpout>();
     var subjectUnderTest = new StormNext();
     subjectUnderTest.BeProcessesBy(spout);
     spout.Received().Next(subjectUnderTest);
 }