コード例 #1
0
        public void ValidParent(string pattern, string expectedParentPattern)
        {
            var pat    = new ResourcePattern(pattern);
            var parent = pat.Parent();

            Assert.Equal(expectedParentPattern, parent.ToString());
        }
コード例 #2
0
        public void InvalidParent(string pattern)
        {
            var pat = new ResourcePattern(pattern);

            Assert.Throws <InvalidOperationException>(() => pat.Parent());
        }