Esempio n. 1
0
        public void Test_0_plus_0()
        {
            var res = Arithmetics.HalfAdder(false, false);

            res.High.Should().BeFalse();
            res.Low.Should().BeFalse();
        }
Esempio n. 2
0
        public void Test_1_plus_1()
        {
            var res = Arithmetics.HalfAdder(true, true);

            res.High.Should().BeTrue();
            res.Low.Should().BeFalse();
        }