示例#1
0
        private static TypeRequestPath MapRequestInfoArrayIntoPath(TypeRequestInfo[] typeRequestInfos)
        {
            var result = TypeRequestPath.Root(TestPathName);

            foreach (var typeRequestInfo in typeRequestInfos)
            {
                result = TypeRequestPath.Branch(result, typeRequestInfo);
            }
            return(result);
        }
示例#2
0
            public void ThrowsArgumentNullExceptionForNullTypeRequestInfo()
            {
                var parent = TypeRequestPath.Root();

                ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => TypeRequestPath.Branch(parent, null));
            }
示例#3
0
            public void ThrowsArgumentNullExceptionForNullParent()
            {
                var item = new TypeRequestInfo(typeof(X));

                ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => TypeRequestPath.Branch(null, item));
            }