public void ShouldCallFail()
        {
            var wrappedBoltWriter = Substitute.For<IBoltWriter>();
            var subjectUndertest = new ThreadSafeBoltWriter(wrappedBoltWriter);

            subjectUndertest.Fail(2);
            subjectUndertest.Shutdown();

            wrappedBoltWriter.Received().Fail(2);
        }
        public void ShouldCallLogInfo()
        {
            var wrappedBoltWriter = Substitute.For<IBoltWriter>();
            var subjectUndertest = new ThreadSafeBoltWriter(wrappedBoltWriter);

            subjectUndertest.LogInfo("hello");
            subjectUndertest.Shutdown();

            wrappedBoltWriter.Received().LogInfo("hello");
        }
        public void ShouldCallEmitTupleDirect()
        {
            var wrappedBoltWriter = Substitute.For<IBoltWriter>();
            var subjectUndertest = new ThreadSafeBoltWriter(wrappedBoltWriter);

            subjectUndertest.EmitTupleDirect(null, null, 5, null);
            subjectUndertest.Shutdown();

            wrappedBoltWriter.Received().EmitTupleDirect(null, null, 5, null);
        }