public void If_any_occurs_while_item_type_creation_an_item_with_error_status_must_be_returned()
        {
            var prober = new RegKeyEffectiveRightsProber();

            ProberBehaviorCreator.CreateBehaviorWithExceptionThrowing(prober);

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

            DoAssertForExecutionWithErrors(proberResult, typeof(regkeyeffectiverights_item));
        }
        public void Should_be_possible_to_execute_a_simple_collect_for_RegKeyEffectiveRights_object()
        {
            var prober = new RegKeyEffectiveRightsProber();

            ProberBehaviorCreator
            .CreateBehaviorForNormalFlowExecution(
                prober,
                FakeItemsToReturnByItemTypeGenerator,
                FakeCollectedItems);

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

            DoAssertForSingleCollectedObject(probeExecutionResult, typeof(regkeyeffectiverights_item));

            this.doBasicProbeResultAssert(probeExecutionResult);
            CollectedObject collectedObject = probeExecutionResult.CollectedObjects.ElementAt(0);

            this.assertCollectedItemsReferences(collectedObject, (IList <ItemType>)collectedObject.SystemData);
            this.assertCollectedItemStatus(collectedObject.ObjectType.reference.ElementAt(0), collectedObject.SystemData[0]);
        }