public void testCreatesCanCastCondition() throws Exception {
root = loadAndInfer(InputTextFieldDataTypeSync.class);
Frame home = assertHasFrame(root, "Home");
InputTextField email = assertHasInputTextField(home, "Email 2");
{
BuiltinProperty canCast = assertHasBuiltinProperty(email, "can cast?");
assertGenerated(canCast);
}
InputTextField integer = assertHasInputTextField(home, "Integer");
{
BuiltinProperty canCast = assertHasBuiltinProperty(integer, "can cast?");
assertGenerated(canCast);
}
InputTextField def = assertHasInputTextField(home, "Default");
{
BuiltinProperty canCast = assertHasBuiltinProperty(def, "can cast?");
assertGenerated(canCast);
}