private static TypeRequestPath MapRequestInfoArrayIntoPath(TypeRequestInfo[] typeRequestInfos) { var result = TypeRequestPath.Root(TestPathName); foreach (var typeRequestInfo in typeRequestInfos) { result = TypeRequestPath.Branch(result, typeRequestInfo); } return(result); }
public void ThrowsArgumentNullExceptionForNullTypeRequestInfo() { var parent = TypeRequestPath.Root(); ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => TypeRequestPath.Branch(parent, null)); }
public void ThrowsArgumentNullExceptionForNullParent() { var item = new TypeRequestInfo(typeof(X)); ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => TypeRequestPath.Branch(null, item)); }