public void ReceiptCreating_FullReceiptCreating_NullBitmap() { //arrange ReceiptMaking receiptCreating = new ReceiptMaking(ocr.Object, shopDetection.Object); //act //assert Assert.Throws <ArgumentNullException>(() => receiptCreating.FullReceiptCreating(null)); }
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)); }