Beispiel #1
0
        public void TestDefinitionNoInitial()
        {

            TuringMachine tm = new TuringMachine("");
            Assert.IsFalse(tm.loadDefinition("testNoInitial.def"), "Test 5.1.6 failed, Initial character found.");
        }
Beispiel #2
0
        public void TestDefinitionNoBlank()
        {

            TuringMachine tm = new TuringMachine("");
            Assert.IsFalse(tm.loadDefinition("testNoBlank.def"), "Test 5.1.7 failed, Blank character found.");
        }
Beispiel #3
0
        public void TestDefinitionNoTransition()
        {

            TuringMachine tm = new TuringMachine("");
            Assert.IsFalse(tm.loadDefinition("testNoTransition.def"), "Test 5.1.5 failed, Transitions found.");
        }
Beispiel #4
0
        public void TestDefinitionNoTape()
        {

            TuringMachine tm = new TuringMachine("");
            Assert.IsFalse(tm.loadDefinition("testNoTape.def"), "Tests 5.1.4 failed, Tape characters found");
        }
Beispiel #5
0
        public void TestDefinitionNoState()
        {

            TuringMachine tm = new TuringMachine("");
            Assert.IsFalse(tm.loadDefinition("testNoState.def"), "Test 5.1.2 failed, States found.");
        }
Beispiel #6
0
        public void TestDefinitionValid()
        {

            TuringMachine tm = new TuringMachine("");
            Assert.IsTrue(tm.loadDefinition("testValid.def"), "Test 5.1.1 failed, Valid defintion not loaded.");
        }
Beispiel #7
0
        public void TestDefinitionNoFinal()
        {

            TuringMachine tm = new TuringMachine("");
            Assert.IsFalse(tm.loadDefinition("testNoFinal.def"), "Test 5.1.8 failed, Final states found.");
        }