From 12032f76d878b0b6619f44efb19845b383f496be Mon Sep 17 00:00:00 2001 From: Alfonso Gregory Date: Wed, 14 Jul 2021 18:26:17 -0400 Subject: [PATCH] Update HistoryTests.cpp --- src/CalculatorUnitTests/HistoryTests.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CalculatorUnitTests/HistoryTests.cpp b/src/CalculatorUnitTests/HistoryTests.cpp index 098c1f10..666b119f 100644 --- a/src/CalculatorUnitTests/HistoryTests.cpp +++ b/src/CalculatorUnitTests/HistoryTests.cpp @@ -104,13 +104,15 @@ namespace CalculatorFunctionalTests m_standardViewModel->SendCommandToCalcManager(static_cast(Command::CommandADD)); m_standardViewModel->SendCommandToCalcManager(static_cast(Command::Command1)); m_standardViewModel->SendCommandToCalcManager(static_cast(Command::CommandEQU)); - for (int i = 1; i < m_historyViewModel->ItemsCount; i++) + for (size_t i = 1; i < m_historyViewModel->MaxHistorySize(); i++) { m_standardViewModel->SendCommandToCalcManager(static_cast(Command::Command1)); m_standardViewModel->SendCommandToCalcManager(static_cast(Command::CommandADD)); m_standardViewModel->SendCommandToCalcManager(static_cast(Command::Command2)); m_standardViewModel->SendCommandToCalcManager(static_cast(Command::CommandEQU)); } + + VERIFY_ARE_EQUAL((size_t) String ^ expression = L"1 + 1 ="; int output = 2; String ^ result = output.ToString();