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