public void When_an_error_occurs_while_creating_items_to_collect_the_created_items_must_have_error_status()
        {
            var prober = new AuditEventPolicySubcategoriesProber();
            ProberBehaviorCreator.CreateBehaviorWithExceptionThrowing(prober);

            var proberExecutionResult = prober.Execute(FakeContext, FakeTargetInfo, FakeCollectInfo);

            DoAssertForExecutionWithErrors(proberExecutionResult, typeof(auditeventpolicysubcategories_item));
        }
        public void Should_be_possible_to_collect_AuditEventPolicySubcategories()
        {
            var prober = new AuditEventPolicySubcategoriesProber();
            ProberBehaviorCreator
                .CreateBehaviorForNormalFlowExecution(
                    prober,
                    FakeItemsToCollect,
                    FakeCollectedItems);

            var probeResult = prober.Execute(FakeContext, FakeTargetInfo, FakeCollectInfo);

            DoAssertForSingleCollectedObject(probeResult, typeof(auditeventpolicysubcategories_item));
        }