static void Main(string[] args) { InputValidator inputValidator = new InputValidator(args); if (inputValidator.validate()) { String validSubjectPrefix = args[0]; TaskOrchestrator orchestrator = new TaskOrchestrator(validSubjectPrefix); orchestrator.PerformExpansion(); } }
public void ValidationSucceedsWhenSubjectPrefixIsAtLeastTwoCharacters() { string[] args = new string[] { "Öl" }; InputValidator inputValidator = new InputValidator(args); Assert.IsTrue(inputValidator.validate()); }
public void ValidationFailsWhenNoArgumentsProvided() { string[] args = new string[0]; InputValidator inputValidator = new InputValidator(args); Assert.IsFalse(inputValidator.validate()); }
public void ValidationFailsSubjectPrefixLengthToSmall() { string[] args = new string[] { "A" }; InputValidator inputValidator = new InputValidator(args); Assert.IsFalse(inputValidator.validate()); }