Use string interpolation instead of calling Format (#1929)

This commit is contained in:
Rose 2022-10-04 12:19:45 -04:00 committed by GitHub
commit 78cd6d52da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"));
} }
} }
} }