Exemple #1
0
        public void If_any_occurs_while_item_type_creation_an_item_with_error_status_must_be_returned() 
        {
            var sidProber = new SIDProber();
            ProberBehaviorCreator.CreateBehaviorWithExceptionThrowing(sidProber);

            var proberResult = sidProber.Execute(FakeContext, FakeTargetInfo, FakeCollectInfo);

            DoAssertForExecutionWithErrors(proberResult, typeof(sid_item));
        }
Exemple #2
0
        public void Should_be_possible_to_collect_sid_objects()
        {
            // Arrange
            var sidProber = new SIDProber();
            ProberBehaviorCreator
                .CreateBehaviorForNormalFlowExecution(
                    sidProber,
                    FakeItemsToBeReturnedByItemTypeGenerator,
                    FakeCollectedItems);

            // Act
            var result = sidProber.Execute(FakeContext, FakeTargetInfo, FakeCollectInfo);

            // Assert
            DoAssertForSingleCollectedObject(result, typeof(sid_item));
        }