public void AppendBitWorks() { var bits = new BitSequence(); bits.AppendBit(true); Assert.IsTrue(bits.Pop()); bits.AppendBit(false); Assert.IsFalse(bits.Pop()); }
public void AppendOffBitWorks() { var bits = new BitSequence(); bits.AppendBit(false); bits.AppendOffBit(); CollectionAssert.AreEqual(new[] { false, false }, bits.ToBitArray()); }
public void AppendOnBitWorks() { var bits = new BitSequence(); bits.AppendBit(true); bits.AppendOnBit(); CollectionAssert.AreEqual(new[] { true, true }, bits.ToBitArray()); }