Exemplo n.º 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();
        }
Exemplo n.º 2
0
 public void ConstructorFileNotExistException()
 {
     try
     {
         Parser parser = new Parser("THIS IS NOT A FILE");
         Assert.Fail();
     }
     catch(ArgumentException)
     {
         Assert.IsTrue(true);
     }
 }
Exemplo n.º 3
0
 public void ConstructorFileExists()
 {
     Parser parser = new Parser("Sample1.taf");
 }