public void IsQueueWithWildCard() { string wildCardContent = null; var result = SnipsClient.IsQueue("hermes/intent/#", "hermes/intent/sdoempke:test", out wildCardContent); Assert.IsTrue(result); Assert.AreEqual("sdoempke:test", wildCardContent); }
static void Main(string[] args) { InitializeLogging(); var snipsClient = new SnipsClient(); snipsClient.RegisterDialog(new TestDialog()); snipsClient.Connect("127.0.0.1"); Console.ReadLine(); }
public void IsQueueWithoutWildCard() { string wildCardContent = null; var resultWithSuccess = SnipsClient.IsQueue("hermes/hotword/toggleOn", "hermes/hotword/toggleOn", out wildCardContent); Assert.IsTrue(resultWithSuccess); Assert.IsNull(wildCardContent); wildCardContent = null; var resultWithFailure = SnipsClient.IsQueue("hermes/hotword/toggleOn", "hermes/hotword/toggleOff", out wildCardContent); Assert.IsFalse(resultWithFailure); Assert.IsNull(wildCardContent); }