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