public void NegTests(short input) { var chips = new Chips(); chips.Neg(input).Should().Be(-input); }
public void FullAdderSumTests(bool carry, bool bit1, bool bit2, bool expected) { var chips = new Chips(); chips.FullAdderSum(carry, bit1, bit2).Should().Be(expected); }
public void HalfAdderSumTests(bool bit1, bool bit2, bool expected) { var chips = new Chips(); chips.HalfAdderSum(bit1, bit2).Should().Be(expected); }
public void FullAdder16Tests(short a, short b, short expected) { var chips = new Chips(); chips.FullAdder16(a, b).Should().Be(expected); }