public void When_an_error_occurs_while_creating_items_to_collect_the_created_items_must_have_error_status() { var prober = new EnvironmentVariableProber(); ProberBehaviorCreator.CreateBehaviorWithExceptionThrowing(prober); var probeResult = prober.Execute(FakeContext, FakeTargetInfo, FakeCollectInfo); DoAssertForExecutionWithErrors(probeResult, typeof(environmentvariable_item)); }
public void Should_be_possible_to_collect_a_simple_environmentvariable_object() { var prober = new EnvironmentVariableProber(); ProberBehaviorCreator. CreateBehaviorForNormalFlowExecution( prober, FakeItemsToCollect, FakeCollectedItems); var probeResult = prober.Execute(FakeContext, FakeTargetInfo, FakeCollectInfo); DoAssertForSingleCollectedObject(probeResult, typeof(environmentvariable_item)); AssertEnvironmentItemEntities(probeResult.CollectedObjects.Single().SystemData.Single()); }