Пример #1
0
 public void NegTests(short input)
 {
     var chips = new Chips();
     chips.Neg(input).Should().Be(-input);
 }
Пример #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);
 }
Пример #3
0
 public void HalfAdderSumTests(bool bit1, bool bit2, bool expected)
 {
     var chips = new Chips();
     chips.HalfAdderSum(bit1, bit2).Should().Be(expected);
 }
Пример #4
0
 public void FullAdder16Tests(short a, short b, short expected)
 {
     var chips = new Chips();
     chips.FullAdder16(a, b).Should().Be(expected);
 }