public void ThenUserSeeTotalSavingAndCreditEarnedAsExpectedIfTheyExist() { //string expectedTotalSavings = (string)_scenarioContext["totalSaving"]; not used but used in previous string expectedCreditEarned = (string)_scenarioContext["creditEarned"]; Assert.AreEqual(expectedCreditEarned, basketP.GetCreditEarnedValue()); }