Exemple #1
0
        public void FilteringIsAppliedToPairsWithSensitiveKeysWhileIgnoringCase()
        {
            var filter = new RaygunKeyValuePairDataFilter();

            var rawData = "user=raygun&password=ABC123";

            var filteredData = filter.Filter(rawData, new List <string>()
            {
                "PaSsWoRd"
            });

            Assert.NotNull(filteredData);
            Assert.AreEqual(filteredData, "user=raygun&password=[FILTERED]");
        }
Exemple #2
0
        public void DataRemainsUnchangedWhenSensitiveKeysAreNotFound()
        {
            var filter = new RaygunKeyValuePairDataFilter();

            var rawData = "key=value";

            var filteredData = filter.Filter(rawData, new List <string>()
            {
                "password"
            });

            Assert.NotNull(filteredData);
            Assert.AreEqual(filteredData, "key=value");
        }