public void ShouldNotBeAbleToHandleASpout()
 {
     var spout = Substitute.For<ISpout>();
     var subjectUnderTest = new StormTuple();
     Assert.That(() => subjectUnderTest.BeProcessesBy(spout),
         Throws.InstanceOf<NotImplementedException>());
 }
예제 #2
0
        public void ShouldNotBeAbleToHandleASpout()
        {
            var spout            = Substitute.For <ISpout>();
            var subjectUnderTest = new StormTuple();

            Assert.That(() => subjectUnderTest.BeProcessesBy(spout),
                        Throws.InstanceOf <NotImplementedException>());
        }
        public void ShouldHandleTupleInBolt()
        {
            var subjectUnderTest = new StormTuple();

            var bolt = Substitute.For<IBolt>();

            subjectUnderTest.BeProcessesBy(bolt);

            bolt.Received().Process(subjectUnderTest);
        }
예제 #4
0
        public void ShouldHandleTupleInBolt()
        {
            var subjectUnderTest = new StormTuple();

            var bolt = Substitute.For <IBolt>();

            subjectUnderTest.BeProcessesBy(bolt);

            bolt.Received().Process(subjectUnderTest);
        }