private void Include(string propertyPath) { propertyPath = DotPathHelper.TrimDots(propertyPath); while (propertyPath.Contains(".")) { m_inclusions.Add(propertyPath); propertyPath = DotPathHelper.GetParent(propertyPath); } }
private bool IsIncluded(string propertyPath) { propertyPath = DotPathHelper.TrimDots(propertyPath); return(m_inclusions.Contains(propertyPath)); }
public void TestTrimDots(string inp, string exp) { Assert.Equal(exp, DotPathHelper.TrimDots(inp)); }