Пример #1
0
        public void ReceiptCreating_FullReceiptCreating_NullBitmap()
        {
            //arrange
            ReceiptMaking receiptCreating = new ReceiptMaking(ocr.Object, shopDetection.Object);

            //act
            //assert
            Assert.Throws <ArgumentNullException>(() => receiptCreating.FullReceiptCreating(null));
        }
Пример #2
0
        public void ReceiptCreating_FullReceiptCreating_EmptyBitmap()
        {
            //arrange
            Bitmap        image           = new Bitmap(1, 1);
            ReceiptMaking receiptCreating = new ReceiptMaking(ocr.Object, shopDetection.Object);

            //act
            //assert
            Assert.Throws <ArgumentNullException>(() => receiptCreating.FullReceiptCreating(image));
        }