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();