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); } }
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); } }
public void CommandNameMustBeNonEmpty() { try { var cmd = new Command("", "sec import"); } catch (Exception ex) { Assert.AreEqual("Name must not be empty", ex.Message); } }
public void CommandNameIsNotNull() { try { var cmd = new Command(null, "sec import"); } catch (Exception ex) { Assert.AreEqual("Name must not be empty", ex.Message); } }
public void CommandHasNameAndQueue() { var cmd = new Command("Securities Import","secimport"); Assert.IsNotNull(cmd.Name); }
public void CommandHasExecutableCommand() { var cmd = new Command("Securities Import","secimport") { ExecuteFile = "DoImport.bat BBH", Arguments= "-o -e 1302" }; Assert.IsNotNull(cmd.ExecuteFile); }