public void JsonMappingTo_Validate_ValidAndInvalidPassThrough() { //------------Setup for test-------------------------- var jsonMappingTo = new JsonMappingTo(); Assert.IsTrue(jsonMappingTo.GetRuleSet("SourceName", "").ValidateRules().Count == 0); jsonMappingTo.SourceName = "bob"; Assert.IsTrue(jsonMappingTo.GetRuleSet("SourceName","").ValidateRules().Count==0); jsonMappingTo.SourceName = "[[rec()]],[[a]]"; //------------Execute Test--------------------------- Assert.IsTrue(jsonMappingTo.GetRuleSet("SourceName", "[[rec()]],[[a]]").ValidateRules().Count > 0); //------------Assert Results------------------------- }