public void ValidParent(string pattern, string expectedParentPattern) { var pat = new ResourcePattern(pattern); var parent = pat.Parent(); Assert.Equal(expectedParentPattern, parent.ToString()); }
public void InvalidParent(string pattern) { var pat = new ResourcePattern(pattern); Assert.Throws <InvalidOperationException>(() => pat.Parent()); }