From 78cd6d52da65983f5c0f8f0859126e9ccf701d6f Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Tue, 4 Oct 2022 12:19:45 -0400 Subject: [PATCH] Use string interpolation instead of calling Format (#1929) --- src/CalculatorUITestFramework/NumberPad.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CalculatorUITestFramework/NumberPad.cs b/src/CalculatorUITestFramework/NumberPad.cs index 225fb570..b4c7831f 100644 --- a/src/CalculatorUITestFramework/NumberPad.cs +++ b/src/CalculatorUITestFramework/NumberPad.cs @@ -77,7 +77,7 @@ namespace CalculatorUITestFramework this.NegateButton.Click(); break; default: - throw (new ArgumentException(string.Format("{0} is not valid", digit))); + throw (new ArgumentException($"{digit} is not valid")); } } }