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);
        }