예제 #1
0
        public void If_any_occurs_while_item_type_creation_an_item_with_error_status_must_be_returned_for_sql57_objects()
        {
            var sqlProber = new Sql57Prober();
            var fakeCollectedInfo = GetFakeCollectInfo("oval:modulo:obj:5100");
            ProberBehaviorCreator.CreateBehaviorWithExceptionThrowing(sqlProber);

            var proberExecutionResult = sqlProber.Execute(FakeContext, FakeTargetInfo, fakeCollectedInfo);

            DoAssertForExecutionWithErrors(proberExecutionResult, typeof(sql57_item));
        }
예제 #2
0
        public void Should_be_possible_to_collect_sql57_object()
        {
            var sqlProber = new Sql57Prober();
            ProberBehaviorCreator
                .CreateBehaviorForNormalFlowExecution(
                    sqlProber,
                    new ItemType[] { FakeSql57Item },
                    new CollectedItem[] { ProbeHelper.CreateFakeCollectedItem(FakeCollectedSql57Item) });

            var probeResult = sqlProber.Execute(FakeContext, FakeTargetInfo, GetFakeCollectInfo("oval:modulo:obj:5100"));

            DoAssertForSingleCollectedObject(probeResult, typeof(sql57_item));
        }