public void Should_be_possible_to_handle_prober_execution_errors() { var lineProber = new LineProber(); ProberBehaviorCreator.CreateBehaviorWithExceptionThrowing(lineProber); var proberResult = lineProber.Execute(base.FakeContext, base.FakeTargetInfo, this.FakeCollectInfo); base.DoAssertForExecutionWithErrors(proberResult, typeof(line_item)); }
public void Should_be_possible_to_call_prober_execution_without_errors() { var lineProber = new LineProber(); ProberBehaviorCreator .CreateBehaviorForNormalFlowExecution (lineProber, new OVAL.SystemCharacteristics.ItemType[] { new line_item() }, new CollectedItem[] { ProbeHelper.CreateFakeCollectedItem(new line_item()) }); var proberResult = lineProber.Execute(base.FakeContext, base.FakeTargetInfo, this.FakeCollectInfo); base.DoAssertForSingleCollectedObject(proberResult, typeof(line_item)); }