public void should_detect_when_a_and_b_are_equal(int a, int b, bool expected)
        {
            var ab     = Arialdo.ToBoolean(a);
            var bb     = Arialdo.ToBoolean(b);
            var actual = _sut.AreEqual(ab, bb);

            actual.Should().Be(expected);
        }
        public void should_detect_when_a_is_bigger(int a, int b, bool expected)
        {
            var ab     = Arialdo.ToBoolean(a);
            var bb     = Arialdo.ToBoolean(b);
            var actual = _sut.IsBigger(ab, bb);

            actual.Should().Be(expected);
        }
        public void shold_stop_when_there_are_no_item_in_the_list()
        {
            var list = new List <bool> {
            };

            var actual = Arialdo.ThereAreOtherItems(list);

            actual.Should().BeFalse();
        }
        public void should_go_on_when_there_are_items_in_the_list()
        {
            var list = new List <bool> {
                true, false, false, true
            };

            var actual = Arialdo.ThereAreOtherItems(list);

            actual.Should().BeTrue();
        }
        public void should_convert_to_binary()
        {
            var n = 1343;

            var binary = Arialdo.ConvertToBinary(n);

            //"10100111111"
            var expected = new List <bool> {
                true, false, true, false, false, true, true, true, true, true, true
            };

            binary.Should().BeEquivalentTo(expected);
        }
        public void should_convert_bit_to_boolean(int value, bool expected)
        {
            var actual = Arialdo.ToBoolean(value);

            actual.Should().Be(expected);
        }
        public void should_combine_2_bits(int a, int b, int combined)
        {
            var actual = Arialdo.Combine(a, b);

            actual.Should().Be(combined);
        }