From ab05123483b165d3817eb906de2f7563770d4159 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Sun, 2 Oct 2022 22:03:12 -0400 Subject: [PATCH] Use string interpolation instead of calling Format --- 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")); } } }