public void RemoveNonExisting()
 {
     Extensions.Serialize(new List<Framework.TrialQuota.Trial>(), "trials.xml", Config.DefaultNamespaceTrialQuota);
     ConsoleAppTrial consoleAppTrial = new ConsoleAppTrial(new string[] {"trial", "remove", "test"});
     consoleAppTrial.Parse();
     consoleAppTrial.Process();
     Assert.AreEqual(0, consoleAppTrial.Trials.Count);
 }
 public void List()
 {
     SerializeOneUserInTrial();
     ConsoleAppTrial consoleAppTrial = new ConsoleAppTrial(new string[] {"trial"});
     consoleAppTrial.Parse();
     consoleAppTrial.Process();
     Assert.AreEqual(1, consoleAppTrial.Trials.Count);
 }
Beispiel #3
0
 public static void Main(string[] args)
 {
     try
     {
         ConsoleAppTrial consoleAppTrial = new ConsoleAppTrial(args);
         consoleAppTrial.Parse();
         consoleAppTrial.Process();
     }
     catch (Exception exception)
     {
         Log.Debug(exception.Message);
         Log.Debug(exception.StackTrace);
     }
 }