Пример #1
0
        public void CalculateMinDimensionReturns72ForImage1()
        {
            // Arrange
            var image    = (Bitmap)Image.FromFile("../../TestImages/test1.jpg");
            var expected = 72;

            // Act
            var actual = _blobCounterWrapper.CalculateMinDimension(image);

            // Assert
            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void CalculateMinDimensionReturns54ForImage6()
        {
            // Arrange
            var image = (Bitmap)Image.FromFile("../../TestImages/test6.jpg");
            var blobCounterWrapper = new BlobCounterWrapper();
            var expected           = 54;

            // Act
            var actual = blobCounterWrapper.CalculateMinDimension(image);

            // Assert
            Assert.AreEqual(actual, expected);
        }