public void Should_be_possible_to_handle_exceptions_while_trying_to_collect_process_object() { var processProber = new ProcessProber(); ProberBehaviorCreator.CreateBehaviorWithExceptionThrowing(processProber); var probeResult = processProber .Execute(FakeContext, FakeTargetInfo, GetFakeCollectInfo("6", "definitions_all_unix.xml")); DoAssertForExecutionWithErrors(probeResult, typeof(OVAL.SystemCharacteristics.Unix.process_item)); }
public void Should_be_possible_to_collect_a_process_object() { var processProber = new ProcessProber(); ProberBehaviorCreator .CreateBehaviorForNormalFlowExecution( processProber, new ItemType[] { FakeProcessItem }, new CollectedItem[] { FakeCollectedItem }); var probeResult = processProber .Execute(FakeContext, FakeTargetInfo, GetFakeCollectInfo("6", "definitions_all_unix.xml")); DoAssertForSingleCollectedObject(probeResult, typeof(OVAL.SystemCharacteristics.Unix.process_item)); }