public void Valid(string key) { var command = new DoSendKeyCommand {Key = key, Test = new SeleniteTest()}; command.Validate(); }
public void Invalid(string key) { var command = new DoSendKeyCommand { Key = key, Test = new SeleniteTest() }; Assert.Throws<ArgumentException>(() => command.Validate()); }