public void CalculatePenaltyRule2() { var qr = new QrCode(3); qr.CalculatePenaltyRule2().Should().Be(12); qr.Set(0, 0, true); qr.Set(1, 1, true); qr.Set(2, 0, true); qr.CalculatePenaltyRule2().Should().Be(0); qr.Set(1, 1, false); qr.CalculatePenaltyRule2().Should().Be(6); }