Exemplo n.º 1
0
        public void ValidateTestData()
        {
            //Get all the xml files in the Content\\Samples directory
            var filename = new Filename("");

            foreach (var source in Directory.GetFiles(filename.GetPath(), "*.xml"))
            {
                //load & validate the pattern
                BulletPattern pattern = new BulletPattern();
                pattern.ParseXML(source);
            }
        }
Exemplo n.º 2
0
        public void MakeSureNothingCrashes()
        {
            //Get all the xml files in the Content\\Samples directory
            var filename = new Filename("");

            foreach (var source in Directory.GetFiles(filename.GetPath(), "*.xml"))
            {
                //load & validate the pattern
                BulletPattern pattern = new BulletPattern();
                pattern.ParseXML(source);

                //fire in the hole
                manager.movers.Clear();
                Mover mover = (Mover)manager.CreateBullet();
                mover.InitTopNode(pattern.RootNode);
            }
        }