Example #1
0
        public void DataContainsReturnsFalseWhenCaseDoesNotMatch()
        {
            var rawData = "{\"UserName\":\"Raygun\",\"Password\":\"123456\"}";

            var containsSensitiveData = RaygunWebApiRequestMessageBuilder.DataContains(rawData, new List <string>()
            {
                "password"
            });

            Assert.AreEqual(containsSensitiveData, false);
        }
Example #2
0
        public void DataContainsReturnsTrueWhenMatchingOnExactCase()
        {
            var rawData = "{\"UserName\":\"Raygun\",\"Password\":\"123456\"}";

            var containsSensitiveData = RaygunWebApiRequestMessageBuilder.DataContains(rawData, new List <string>()
            {
                "Password"
            });

            Assert.AreEqual(containsSensitiveData, true);
        }