public void When_an_error_occurs_while_creating_items_to_collect_the_created_items_must_have_error_status()
        {
            var prober = new FileAuditedPermissionsProber();
            ProberBehaviorCreator.CreateBehaviorWithExceptionThrowing(prober);
            
            var probeExecutionResult = prober.Execute(FakeContext, FakeTargetInfo, FakeCollectInfo);

            DoAssertForExecutionWithErrors(probeExecutionResult, typeof(fileauditedpermissions_item));
        }
        public void Should_be_possible_to_collect_a_simple_xmlfilecontent_object()
        {
            var prober = new FileAuditedPermissionsProber();
            ProberBehaviorCreator
                .CreateBehaviorForNormalFlowExecution(
                    prober,
                    FakeItemsToCollect,
                    FakeCollectedItems);

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

            DoAssertForSingleCollectedObject(probeResult, typeof(fileauditedpermissions_item));
        }