public void AddValueTest()
 {
     var temp = new ChainsAlphabet();
     var a = new ValueString('A');
     temp.Add(a);
     var b = (BaseChain)temp[0];
     Assert.AreEqual(1, b.GetLength());
     Assert.AreEqual(a, b[0]);
 }
        public void SortListTest()
        {
            var temp = new ChainsAlphabet();
            var a = new BaseChain(2);
            for (int i = 0; i < a.GetLength(); i++)
            {
                a.Set((ValueInt)i, i);
            }

            temp.Add(a);
            var b = new BaseChain(1);
            for (int i = 0; i < b.GetLength(); i++)
            {
                b.Set((ValueInt)i, i);
            }

            temp.Add(b);
            var c = new BaseChain(5);
            for (int i = 0; i < c.GetLength(); i++)
            {
                c.Set((ValueInt)i, i);
            }

            temp.Add(c);
            var d = new BaseChain(2);
            for (int i = 0; i < d.GetLength(); i++)
            {
                d.Set((ValueInt)(i + 1), i);
            }

            temp.Add(d);
            ArrayList list = temp.GetLengthList();
            Assert.AreEqual(5, list[2]);
            Assert.AreEqual(2, list[1]);
            Assert.AreEqual(1, list[0]);
        }
 public void AddChainTest()
 {
     var temp = new ChainsAlphabet { chainBase };
     var result = (BaseChain)temp[0];
     Assert.AreEqual(chainBase, result);
 }