Ejemplo n.º 1
0
 public void CommandTagIsNotNull()
 {
     try
     {
         var cmd = new Command("Securities Import", null);
     }
     catch (Exception ex)
     {
         Assert.AreEqual("Command queue must not be empty or contain whitespace", ex.Message);
     }
 }
Ejemplo n.º 2
0
 public void CommandQueueHasNoSpaces()
 {
     try
     {
         var cmd = new Command("Securities Import", "sec import");
     }
     catch (Exception ex)
     {
         Assert.AreEqual("Command queue must not be empty or contain whitespace", ex.Message);
     }
 }
Ejemplo n.º 3
0
 public void CommandNameMustBeNonEmpty()
 {
     try
     {
         var cmd = new Command("", "sec import");
     }
     catch (Exception ex)
     {
         Assert.AreEqual("Name must not be empty", ex.Message);
     }
 }
Ejemplo n.º 4
0
 public void CommandNameIsNotNull()
 {
     try
     {
         var cmd = new Command(null, "sec import");
     }
     catch (Exception ex)
     {
         Assert.AreEqual("Name must not be empty", ex.Message);
     }
 }
Ejemplo n.º 5
0
 public void CommandHasNameAndQueue()
 {
     var cmd = new Command("Securities Import","secimport");
     Assert.IsNotNull(cmd.Name);
 }
Ejemplo n.º 6
0
 public void CommandHasExecutableCommand()
 {
     var cmd = new Command("Securities Import","secimport") { ExecuteFile = "DoImport.bat BBH", Arguments= "-o -e 1302" };
     Assert.IsNotNull(cmd.ExecuteFile);
 }