Beispiel #1
0
        public void GetSymbolReturnsBlankCharForUninitialisedTapeEntries()
        {
            Tape tape = new Tape();

            Assert.AreEqual(' ', tape.GetSymbol(-1));
            Assert.AreEqual(' ', tape.GetSymbol(1));
        }
Beispiel #2
0
        public void GetSymbolReturnsCharStoredInTapeElements()
        {
            Tape tape = new Tape();

            tape.Write('a');
            Assert.AreEqual('a', tape.GetSymbol(0));
        }
Beispiel #3
0
        public void GetSymbolReturnsBlankCharForNullElements()
        {
            Tape tape = new Tape();

            Assert.AreEqual(' ', tape.GetSymbol(0));
        }