public void should_invoke_new_action()
        {
            var logger = new OSPSuiteLogger(sut);

            logger.AddToLog("test", new LogLevel(), "testcategory");
            A.CallTo(() => _f1.Invoke(A <ILoggingBuilder> .Ignored)).MustHaveHappened();
        }
        public void should_invoke_all_actions_in_order()
        {
            var iterations = 10;
            var functions  = new List <Func <ILoggingBuilder, ILoggingBuilder> >();

            for (var i = 0; i < iterations; i++)
            {
                functions.Add(A.Fake <Func <ILoggingBuilder, ILoggingBuilder> >());
                sut.AddLoggingBuilderConfiguration(functions[i]);
            }

            var logger = new OSPSuiteLogger(sut);

            logger.AddToLog("test", new LogLevel(), "testcategory");

            for (var i = 0; i < iterations; i++)
            {
                IOrderableCallAssertion check = A.CallTo(() => functions[0].Invoke(A <ILoggingBuilder> .Ignored)).MustHaveHappened();
                for (var j = 1; j < iterations; j++)
                {
                    check = check.Then(A.CallTo(() => functions[j].Invoke(A <ILoggingBuilder> .Ignored)).MustHaveHappened());
                }
            }
        }