public void TestQRMethod() { QRS = new QR_Scanner(); string QRFileLocation = @"C:\Users\MathiasBellerbySylve\Documents\Visual Studio 2015\Projects\RemoteManual\Lib\static_qr_code_without_logo.jpg"; QRS.ScanQRCodeFromFile(QRFileLocation); Assert.AreEqual("https://goo.gl/zmdhuW", QRS.extractedData); }
private void button2_Click(object sender, EventArgs e) { if (ImagePath != "") { QR_Scanner QRS = new QR_Scanner(); QRS.ScanQRCodeFromFile(ImagePath); System.Diagnostics.Process.Start(QRS.extractedData); } else { MessageBox.Show("Error: Please Specify QR-Code to Scan"); } }