No exception is thrown, function just halts at this statement:
int productQuantity = Convert.ToInt32(\"1.00\");
and returns.
What
FormatException Input string was not in a correct format.