예제 #1
0
        public void CalculatePenaltyRule1()
        {
            var qr = new QrCode(7);

            qr.CalculatePenaltyRule1().Should().Be(70);
            qr.Set(0, 0, true);
            qr.CalculatePenaltyRule1().Should().Be(68);
            qr.Set(0, 6, true);
            qr.CalculatePenaltyRule1().Should().Be(66);
        }