public void Should_be_possible_to_collect_runlevel_object() { var prober = new RunLevelProber(); new ProberBehaviorCreator() .CreateBehaviorForNormalFlowExecution( prober, new ItemType[] { new runlevel_item() }, new CollectedItem[] { ProbeHelper.CreateFakeCollectedItem(new runlevel_item()) }); var result = prober.Execute(FakeContext, FakeTargetInfo, GetFakeCollectInfo("oval:modulo:obj:2380")); DoAssertForSingleCollectedObject(result, typeof(runlevel_item)); }
public void Should_be_possible_to_get_set_element_for_runlevel_objects() { var prober = new RunLevelProber(); new ProberBehaviorCreator() .CreateBehaviorForNormalFlowExecution( prober, new ItemType[] { new runlevel_item() }, new CollectedItem[] { ProbeHelper.CreateFakeCollectedItem(new runlevel_item()) }); var result = prober.Execute(FakeContext, FakeTargetInfo, GetFakeCollectInfo("oval:modulo:obj:120", "definitions_all_unix")); Assert.IsNotNull(result); // Assert.AreEqual(2, result.CollectedObjects.Count()); // DoAssertForSingleCollectedObject(result, typeof(runlevel_item)); }