Use string interpolation instead of calling Format

This commit is contained in:
Rose 2022-10-02 22:03:12 -04:00
commit ab05123483

View file

@ -77,7 +77,7 @@ namespace CalculatorUITestFramework
this.NegateButton.Click(); this.NegateButton.Click();
break; break;
default: default:
throw (new ArgumentException(string.Format("{0} is not valid", digit))); throw (new ArgumentException($"{digit} is not valid"));
} }
} }
} }