mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-13 00:32:52 -07:00
refactor HistoryTest.cpp to test the history using HistoryViewModel (#784)
* refactor HistoryTest * modify MultiWindowUnitTests to not use m_standardCalcManager * rebase Co-authored-by: Rudy Huyn <rudy.huyn@microsoft.com>
This commit is contained in:
parent
0ed876db43
commit
825b42ad46
13 changed files with 245 additions and 248 deletions
|
@ -1812,3 +1812,13 @@ void StandardCalculatorViewModel::SelectHistoryItem(HistoryItemViewModel ^ item)
|
|||
SetPrimaryDisplay(item->Result, false);
|
||||
IsFToEEnabled = false;
|
||||
}
|
||||
|
||||
void StandardCalculatorViewModel::ResetCalcManager(bool clearMemory)
|
||||
{
|
||||
m_standardCalculatorManager.Reset(clearMemory);
|
||||
}
|
||||
|
||||
void StandardCalculatorViewModel::SendCommandToCalcManager(int commandId)
|
||||
{
|
||||
m_standardCalculatorManager.SendCommand(static_cast<Command>(commandId));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue