예제 #1
0
        public void Encode_ShouldUseATable()
        {
            bool result;

            bool T(byte currentEncoding, params char[] nextChars)
            => Code128.ShouldUseATable(nextChars, currentEncoding);

            result = T(0, '\r', 'A');
            result.Should().BeTrue();

            result = T(0, Code128Constants.FNC1, '\r');
            result.Should().BeTrue();

            result = T(0, Code128Constants.FNC1, '1', '2', '3');
            result.Should().BeFalse();
        }