X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/757bd0807efe6f079a8377de612cd87a9ac024bf..dd516a3640e528b4a29c477f0ac390ac84847672:/demo/src/Main.cs?ds=sidebyside diff --git a/demo/src/Main.cs b/demo/src/Main.cs index ce03513..8e7dcbf 100644 --- a/demo/src/Main.cs +++ b/demo/src/Main.cs @@ -12,11 +12,36 @@ public class App ArrayList lst; Glade.XML xmla; + #region Tests + + /// + /// Decide si se corre la demo ó los tests automatizados + /// + private static bool testing = false; + + private static void EjecutarTests() + { + Tests.TestsAutorizacion.Instancia.EjecutarTodos(); + + Console.Read(); + + //Acá pueden agregar más, si quieren + } + + #endregion Tests + + #region Entry Point + static public void Main (string[] args) { - new App (); + if ( ! testing ) + new App (); + else + EjecutarTests(); } + #endregion Entry Point + public App () { Application.Init();