コード例 #1
0
        public void CreateTextEmptyReference()
        {
            Bill             bill   = SampleQRCodeText.CreateBillData3();
            ValidationResult result = QRBill.Validate(bill);

            Assert.False(result.HasErrors);
            bill           = result.CleanedBill;
            bill.Reference = "";
            Assert.Equal(SampleQRCodeText.CreateQrCodeText3(false), QRBill.EncodeQrCodeText(bill));
        }
コード例 #2
0
        public void DecodeTextB3()
        {
            Bill bill = SampleQRCodeText.CreateBillData3();

            TestHelper.NormalizeSourceBill(bill);
            Bill bill2 = QRBill.DecodeQrCodeText(SampleQRCodeText.CreateQrCodeText3(false));

            TestHelper.NormalizeDecodedBill(bill2);
            Assert.Equal(bill, bill2);
        }
コード例 #3
0
        public void CreateText3()
        {
            Bill bill = SampleQRCodeText.CreateBillData3();

            Assert.Equal(SampleQRCodeText.CreateQrCodeText3(false), QRBill.EncodeQrCodeText(bill));
        }