예제 #1
0
        public void ReverseTest()
        {
            var seq = new BitSequence(16);

            seq.Push();
            seq.Push(true);
            seq.Push();
            seq.Push(true);
            seq.Push(true);
            seq.Push(true);
            seq.Push(true);
            seq.Push();
            seq.Push(true);
            Assert.Equal("010111101", seq.ToString());
            seq.Reverse();;
            Assert.Equal("101111010", seq.ToString());
        }