From 7c524a6bb4771f2c87c80107dc9096ec6e5e9f05 Mon Sep 17 00:00:00 2001 From: Alfonso Gregory Date: Wed, 14 Jul 2021 18:56:42 -0400 Subject: [PATCH] Update HistoryTests.cpp --- src/CalculatorUnitTests/HistoryTests.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/CalculatorUnitTests/HistoryTests.cpp b/src/CalculatorUnitTests/HistoryTests.cpp index c63b640c..cda2dd4c 100644 --- a/src/CalculatorUnitTests/HistoryTests.cpp +++ b/src/CalculatorUnitTests/HistoryTests.cpp @@ -104,15 +104,14 @@ namespace CalculatorFunctionalTests m_standardViewModel->SendCommandToCalcManager(static_cast(Command::CommandADD)); m_standardViewModel->SendCommandToCalcManager(static_cast(Command::Command1)); m_standardViewModel->SendCommandToCalcManager(static_cast(Command::CommandEQU)); - for (size_t i = 1; i < m_historyViewModel->MaxHistorySize(); i++) + for (size_t i = 1; i < m_historyViewModel->GetMaxHistorySize(); 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)m_historyViewModel->ItemsCount, m_historyViewModel->MaxHistorySize()); + VERIFY_ARE_EQUAL((size_t)m_historyViewModel->ItemsCount, m_historyViewModel->GetMaxHistorySize()); String ^ expression = L"1 + 1 ="; int output = 2; String ^ result = output.ToString();