Exemple #1
0
        public void BeforeEachTest()
        {
            _blobCounterWrapperMock        = Substitute.For <BlobCounterWrapper>();
            _simpleShapeCheckerWrapperMock = Substitute.For <SimpleShapeCheckerWrapper>();
            _colorFilteringWrapperMock     = Substitute.For <ColorFilteringWrapper>();
            _colorRangeFactoryMock         = Substitute.For <IColorRangeFactory>();
            _postItAnalysis = new PostItAnalysis(_blobCounterWrapperMock, _simpleShapeCheckerWrapperMock,
                                                 _colorFilteringWrapperMock);
            var colorRanges = new ColorRanges(_colorRangeFactoryMock);

            _yellowRgbRanges = colorRanges.Rgb[Colors.Yellow];
        }
 public void BeforeEachTest()
 {
     _blobCounterWrapperMock = Substitute.For <IBlobCounterWrapper>();
     _blobsDetector          = new BlobsDetector(_blobCounterWrapperMock);
     _image = (Bitmap)Image.FromFile("../../TestImages/test1.jpg");
 }