public void Should_be_possible_to_handle_error_during_prober_execution()
        {
            var prober = new FileEffectiveRights53Prober();
            new ProberBehaviorCreator().CreateBehaviorWithExceptionThrowing(prober);

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

            DoAssertForExecutionWithErrors(proberResult, typeof(fileeffectiverights_item));
        }
        public void Should_be_possible_to_call_FileEffectiveRights53Prober_execution_without_errors()
        {
            var prober = new FileEffectiveRights53Prober();
            new ProberBehaviorCreator()
                .CreateBehaviorForNormalFlowExecution(
                    prober,
                    FakeItemsToBeGenerateByItemTypeGenerator,
                    FakeCollectedItemsToBeReturnedByObjectCollector);

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

            DoAssertForSingleCollectedObject(proberResult, typeof(fileeffectiverights_item));
        }
        public void Should_be_possible_to_use_SET_to_collect_fileeffectiverights53_object()
        {
            var objectWithSet = OvalDefinitionsSample.objects.Single(obj => obj.id.Equals("oval:modulo:obj:1001"));
            var fakeCollectInfo = ProbeHelper.CreateFakeCollectInfo(new OVAL.Definitions.ObjectType[] { objectWithSet }, null, null);
            var prober = new FileEffectiveRights53Prober();
            new ProberBehaviorCreator()
                .CreateBehaviorForNormalFlowExecution(
                    prober,
                    FakeItemsToBeGenerateByItemTypeGenerator,
                    FakeCollectedItemsToBeReturnedByObjectCollector);


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

            Assert.AreEqual(0, proberResult.CollectedObjects.Count());
        }