mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Refactor
This commit is contained in:
parent
46f82fbe4d
commit
697697f99f
1 changed files with 2 additions and 2 deletions
|
@ -104,14 +104,14 @@ namespace CalculatorFunctionalTests
|
|||
m_standardViewModel->SendCommandToCalcManager(static_cast<int>(Command::CommandADD));
|
||||
m_standardViewModel->SendCommandToCalcManager(static_cast<int>(Command::Command1));
|
||||
m_standardViewModel->SendCommandToCalcManager(static_cast<int>(Command::CommandEQU));
|
||||
for (unsigned long long i = 1; i < m_historyViewModel->GetMaxItemSize(); i++)
|
||||
for (size_t i = 1; i < m_historyViewModel->m_calculatorManager->MaxHistorySize()); i++)
|
||||
{
|
||||
m_standardViewModel->SendCommandToCalcManager(static_cast<int>(Command::Command1));
|
||||
m_standardViewModel->SendCommandToCalcManager(static_cast<int>(Command::CommandADD));
|
||||
m_standardViewModel->SendCommandToCalcManager(static_cast<int>(Command::Command2));
|
||||
m_standardViewModel->SendCommandToCalcManager(static_cast<int>(Command::CommandEQU));
|
||||
}
|
||||
VERIFY_ARE_EQUAL((size_t)m_historyViewModel->ItemsCount, m_historyViewModel->GetMaxItemSize());
|
||||
VERIFY_ARE_EQUAL((size_t)m_historyViewModel->ItemsCount, m_historyViewModel->m_calculatorManager->MaxHistorySize()));
|
||||
String ^ expression = L"1 + 1 =";
|
||||
int output = 2;
|
||||
String ^ result = output.ToString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue