Esempio n. 1
0
        public void Bit_SetsBitValue(int input, int bitNumber, bool newValue, int expected)
        {
            var actual = IntExtensions.Bit(input, bitNumber, newValue);

            actual.Should().Be(expected);
        }
Esempio n. 2
0
        public void Bits_SetsValue(int input, int bitNumber, int downTo, int newValue, int expected)
        {
            var actual = IntExtensions.Bits(input, bitNumber, downTo, newValue);

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