예제 #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);
        }
예제 #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);
        }