Exemple #1
0
        static void Main(string[] args)
        {
            Parser parser = new Parser("Sample1.taf");
            var nodes = parser.Parse();
            Engine engine = new Engine(nodes);
            engine.Play();

            Console.WriteLine("Done! ENTER to exit.");
            Console.ReadLine();
        }
Exemple #2
0
 public void ConstructorFileNotExistException()
 {
     try
     {
         Parser parser = new Parser("THIS IS NOT A FILE");
         Assert.Fail();
     }
     catch(ArgumentException)
     {
         Assert.IsTrue(true);
     }
 }
Exemple #3
0
 public void ConstructorFileExists()
 {
     Parser parser = new Parser("Sample1.taf");
 }