Esempio n. 1
0
        public void ConstructorUpdatesThePatterns()
        {
            List <string> patterns = new List <string> {
                "pattern1", "pattern2", "pattern3"
            };

            var service = new ObfuscationService(patterns);

            Assert.AreEqual(JsonSerializer.Serialize(patterns), JsonSerializer.Serialize(service.GetPatterns()));
        }
Esempio n. 2
0
        public void DefaultPatternsAreUsedIfNoPatternsAreProvided()
        {
            var service = new ObfuscationService();

            Assert.AreEqual(JsonSerializer.Serialize(ObfuscationService.DefaultPatterns), JsonSerializer.Serialize(service.GetPatterns()));
        }