public void Test_1_plus_0_plus_1() { var res = Arithmetics.AddTwoBits(new Bit2(false, true), new Bit2(false, false), true); res.High.Low.Should().BeFalse(); res.Low.High.Should().BeTrue(); res.Low.Low.Should().BeFalse(); }
public void Test_0_plus_0_plus_0() { var nibble = Arithmetics.AddTwoBits(new Bit2(false, false), new Bit2(false, false), false); nibble.High.Low.Should().BeFalse(); nibble.Low.High.Should().BeFalse(); nibble.Low.Low.Should().BeFalse(); }