public void LongPropertyEquality()
        {
            var tempPropertyName = Guid.NewGuid().ToString();

            FilteringTestData.ManyPropertiesEvent.Payload.Add(tempPropertyName, long.Parse("FFFFABCDFFFFABCD", System.Globalization.NumberStyles.HexNumber));

            var evaluator = new BitwiseEqualityEvaluator(tempPropertyName, "0xFFFFABC0FFFFABC0");

            Assert.True(evaluator.Evaluate(FilteringTestData.ManyPropertiesEvent));

            evaluator = new BitwiseEqualityEvaluator(tempPropertyName, "0xFFFFABCEFFFFABCE");
            Assert.False(evaluator.Evaluate(FilteringTestData.ManyPropertiesEvent));

            FilteringTestData.ManyPropertiesEvent.Payload[tempPropertyName] = long.MaxValue;
            evaluator = new BitwiseEqualityEvaluator(tempPropertyName, "0x0FFFFFFFFFFFFFFF");
            Assert.True(evaluator.Evaluate(FilteringTestData.ManyPropertiesEvent));

            evaluator = new BitwiseEqualityEvaluator(tempPropertyName, "0xFFFFFFFFFFFFFFFF");
            Assert.False(evaluator.Evaluate(FilteringTestData.ManyPropertiesEvent));

            FilteringTestData.ManyPropertiesEvent.Payload[tempPropertyName] = long.MinValue;
            evaluator = new BitwiseEqualityEvaluator(tempPropertyName, "0x8000000000000000");
            Assert.True(evaluator.Evaluate(FilteringTestData.ManyPropertiesEvent));

            evaluator = new BitwiseEqualityEvaluator(tempPropertyName, "0x8000000000000001");
            Assert.False(evaluator.Evaluate(FilteringTestData.ManyPropertiesEvent));

            FilteringTestData.ManyPropertiesEvent.Payload.Remove(tempPropertyName);
        }
        public void BitwiseEqualityHexFormat()
        {
            var tempPropertyName = Guid.NewGuid().ToString();

            FilteringTestData.ManyPropertiesEvent.Payload.Add(tempPropertyName, 0xF3);

            var evaluator = new BitwiseEqualityEvaluator(tempPropertyName, "0x03");

            Assert.True(evaluator.Evaluate(FilteringTestData.ManyPropertiesEvent));

            evaluator = new BitwiseEqualityEvaluator(tempPropertyName, "0xA4");
            Assert.False(evaluator.Evaluate(FilteringTestData.ManyPropertiesEvent));

            FilteringTestData.ManyPropertiesEvent.Payload.Remove(tempPropertyName);
        }
        public void BytePropertyEquality()
        {
            var tempPropertyName = Guid.NewGuid().ToString();

            FilteringTestData.ManyPropertiesEvent.Payload.Add(tempPropertyName, byte.Parse("F3", System.Globalization.NumberStyles.HexNumber));

            var evaluator = new BitwiseEqualityEvaluator(tempPropertyName, "0xF3");

            Assert.True(evaluator.Evaluate(FilteringTestData.ManyPropertiesEvent));

            evaluator = new BitwiseEqualityEvaluator(tempPropertyName, "0xF5");
            Assert.False(evaluator.Evaluate(FilteringTestData.ManyPropertiesEvent));

            FilteringTestData.ManyPropertiesEvent.Payload.Remove(tempPropertyName);
        }