public void WillThrowArgumentNullExceptionIfRightKeyIsNull() { Asserter .AssertExceptionIsThrown <ArgumentNullException>( () => new JoinAttribute(JoinType.Inner, typeof(object), DataGenerator.GenerateString(), null, It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <JoinType>(), It.IsAny <string>(), It.IsAny <string>())) .AndVerifyHasParameter("rightKey"); }
public void WillThrowArgumentNullExceptionIfJoinedTypeIsNull() { Asserter .AssertExceptionIsThrown <ArgumentNullException>( () => new JoinAttribute(JoinType.Inner, It.IsAny <Type>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <JoinType>(), It.IsAny <string>(), It.IsAny <string>())) .AndVerifyHasParameter("joinedType"); }
public void WillThrowArgumentEmptyExceptionIfLeftKeyIsEmpty() { Asserter .AssertExceptionIsThrown <ArgumentEmptyException>( () => new JoinAttribute(JoinType.Inner, typeof(object), String.Empty, It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <JoinType>(), It.IsAny <string>(), It.IsAny <string>())) .AndVerifyHasParameter("leftKey"); }
public void WillThrowArgumentInvalidExceptionIfJoinTypeIsNone() { Asserter .AssertExceptionIsThrown <ArgumentInvalidException>( () => new JoinAttribute(JoinType.None, It.IsAny <Type>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <JoinType>(), It.IsAny <string>(), It.IsAny <string>())) .AndVerifyHasParameter("relationshipType"); }
public void WillThrowArgumentEmptyExceptionIfRightKeyIsEmpty() { Asserter .AssertExceptionIsThrown <ArgumentEmptyException>( () => new JoinAttribute(JoinType.Inner, typeof(object), DataGenerator.GenerateEmailAddress(), String.Empty, It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <JoinType>(), It.IsAny <string>(), It.IsAny <string>())) .AndVerifyHasParameter("rightKey"); }