public void SetUp()
 {
     alpha = DnaAlphabet.Instance();
     symbols = new SymbolArray(alpha, "actgactg");
     this.indexer = new IndexerDirect(2);
     accessor = new AccessorLinear(indexer, 4, symbols);
 }
 public void SetUp()
 {
     alpha = DnaAlphabet.Instance();
     symbols = new SymbolArray(alpha, "tatgacgt");
     this.indexer = new IndexerDirect(2);
     accessor = new AccessorTransparent(indexer, 4, symbols);
 }
 public void SetUp()
 {
     alpha = DnaAlphabet.Instance();
     symbols = new SymbolArray(alpha, "actgactg");
     indexer = new IndexerDirect(2);
     indexerReverse = new IndexerReverse(2,symbols.Length);
     accessor = new AccessorCircular(this.indexer, 4, symbols);
 }
        public void TestReverseSymbolAt()
        {
            this.indexer = new IndexerReverse(2, symbols.Length);
            accessor = new AccessorLinear(indexer, 4, symbols);

            Assert.AreEqual(alpha['-'], accessor.SymbolAt(-1));
            Assert.AreEqual(alpha['c'], accessor.SymbolAt(0));
            Assert.AreEqual(alpha['a'], accessor.SymbolAt(1));

            Assert.AreEqual(alpha['g'], accessor.SymbolAt(2));
            Assert.AreEqual(alpha['t'], accessor.SymbolAt(3));
            Assert.AreEqual(alpha['-'], accessor.SymbolAt(4));
        }