Example #1
0
        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);
        }
Example #2
0
        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);
        }