public void Should_be_possible_to_handle_version_prober_execution_errors() { var versionProber = new VersionProber(); ProberBehaviorCreator.CreateBehaviorWithExceptionThrowing(versionProber); var proberResult = versionProber.Execute(base.FakeContext, base.FakeTargetInfo, this.FakeCollectInfo); base.DoAssertForExecutionWithErrors(proberResult, typeof(version_item)); }
public void Should_be_possible_to_call_version_prober_execution_without_errors() { var versionProber = new VersionProber(); ProberBehaviorCreator .CreateBehaviorForNormalFlowExecution (versionProber, new OVAL.SystemCharacteristics.ItemType[] { new version_item() }, new CollectedItem[] { ProbeHelper.CreateFakeCollectedItem(new version_item()) }); var proberResult = versionProber.Execute(base.FakeContext, base.FakeTargetInfo, this.FakeCollectInfo); base.DoAssertForSingleCollectedObject(proberResult, typeof(version_item)); }