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())); }
public void DefaultPatternsAreUsedIfNoPatternsAreProvided() { var service = new ObfuscationService(); Assert.AreEqual(JsonSerializer.Serialize(ObfuscationService.DefaultPatterns), JsonSerializer.Serialize(service.GetPatterns())); }