예제 #1
0
        public void Match_Wildcard()
        {
            var message = new WirehomeDictionary()
                          .WithValue("type", "myTypeX");

            var filter = new WirehomeDictionary()
                         .WithValue("type", "*");

            var compareResult = MessageBusFilterComparer.IsMatch(message, filter);

            Assert.IsTrue(compareResult);
        }
예제 #2
0
        public void Match_Wildcard()
        {
            var message = new Dictionary <string, string>
            {
                ["type"] = "myTypeX"
            };

            var filter = new Dictionary <string, string>
            {
                ["type"] = "*"
            };

            var compareResult = MessageBusFilterComparer.IsMatch(message, filter);

            Assert.IsTrue(compareResult);
        }