internal static IResolveConstraint FrameControlIsNotOfFrameControlType(object frameControl, Type frameControlType) { var message = ExceptionMessages.FrameControlIsNotOfFrameControlType(frameControl, frameControlType); return(Throws.ArgumentException.And.Message.EqualTo(message)); }