Exemple #1
0
        public void Test_1_plus_1_plus_0()
        {
            var byteResult = Arithmetics.AddNibble(new Nibble("0001"), new Nibble("0001"), false);

            byteResult.ToShort().Should().Be(2);
        }
Exemple #2
0
        public void Test_15_plus_15_plus_1()
        {
            var byteResult = Arithmetics.AddNibble(new Nibble("1111"), new Nibble("1111"), true);

            byteResult.ToShort().Should().Be(31);
        }