static int ConvertToNumber(int r, string numerizedString, string s)
{
var value = 0;
if (!Int32.TryParse(numerizedString, out value))
{
throw new Exception(
String.Format(
"Numerized input '{0}' is expected to be an integral number but it's not. Test case: {1} => {2}",
numerizedString,
s,
r));
}
return value;
}