mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
spelling: serialize
This commit is contained in:
parent
663e092ad0
commit
3c9d59999a
2 changed files with 7 additions and 7 deletions
|
@ -260,7 +260,7 @@ namespace CalculatorManagerTest
|
||||||
VERIFY_IS_LESS_THAN(0, pCalculatorDisplay->GetMaxDigitsCalledCount());
|
VERIFY_IS_LESS_THAN(0, pCalculatorDisplay->GetMaxDigitsCalledCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SerialzieAndDeSerialize()
|
void SerializeAndDeSerialize()
|
||||||
{
|
{
|
||||||
auto serializedCommands = m_calculatorManager->SerializeCommands();
|
auto serializedCommands = m_calculatorManager->SerializeCommands();
|
||||||
auto serializedMemory = m_calculatorManager->GetSerializedMemory();
|
auto serializedMemory = m_calculatorManager->GetSerializedMemory();
|
||||||
|
@ -278,7 +278,7 @@ namespace CalculatorManagerTest
|
||||||
auto savedPrimary = m_calculatorDisplayTester->GetPrimaryDisplay();
|
auto savedPrimary = m_calculatorDisplayTester->GetPrimaryDisplay();
|
||||||
auto savedExpression = m_calculatorDisplayTester->GetExpression();
|
auto savedExpression = m_calculatorDisplayTester->GetExpression();
|
||||||
auto savedMemory = m_calculatorDisplayTester->GetMemorizedNumbers();
|
auto savedMemory = m_calculatorDisplayTester->GetMemorizedNumbers();
|
||||||
SerialzieAndDeSerialize();
|
SerializeAndDeSerialize();
|
||||||
VERIFY_ARE_EQUAL(savedPrimary, m_calculatorDisplayTester->GetPrimaryDisplay());
|
VERIFY_ARE_EQUAL(savedPrimary, m_calculatorDisplayTester->GetPrimaryDisplay());
|
||||||
VERIFY_ARE_EQUAL(savedExpression, m_calculatorDisplayTester->GetExpression());
|
VERIFY_ARE_EQUAL(savedExpression, m_calculatorDisplayTester->GetExpression());
|
||||||
auto loadedMemory = m_calculatorDisplayTester->GetMemorizedNumbers();
|
auto loadedMemory = m_calculatorDisplayTester->GetMemorizedNumbers();
|
||||||
|
@ -915,7 +915,7 @@ namespace CalculatorManagerTest
|
||||||
Command commands[] = { Command::Command1, Command::CommandDIV, Command::Command3, Command::CommandEQU, Command::CommandNULL };
|
Command commands[] = { Command::Command1, Command::CommandDIV, Command::Command3, Command::CommandEQU, Command::CommandNULL };
|
||||||
ExecuteCommands(commands);
|
ExecuteCommands(commands);
|
||||||
|
|
||||||
SerialzieAndDeSerialize();
|
SerializeAndDeSerialize();
|
||||||
|
|
||||||
Command commands2[] = { Command::CommandMUL, Command::Command3, Command::CommandEQU, Command::CommandNULL };
|
Command commands2[] = { Command::CommandMUL, Command::Command3, Command::CommandEQU, Command::CommandNULL };
|
||||||
ExecuteCommands(commands2);
|
ExecuteCommands(commands2);
|
||||||
|
@ -944,7 +944,7 @@ namespace CalculatorManagerTest
|
||||||
wstring primaryDisplay = pCalculatorDisplay->GetPrimaryDisplay();
|
wstring primaryDisplay = pCalculatorDisplay->GetPrimaryDisplay();
|
||||||
wstring expressionDisplay = pCalculatorDisplay->GetExpression();
|
wstring expressionDisplay = pCalculatorDisplay->GetExpression();
|
||||||
|
|
||||||
SerialzieAndDeSerialize();
|
SerializeAndDeSerialize();
|
||||||
|
|
||||||
vector<wstring> memorizedNumbersAfterDeSerialize = pCalculatorDisplay->GetMemorizedNumbers();
|
vector<wstring> memorizedNumbersAfterDeSerialize = pCalculatorDisplay->GetMemorizedNumbers();
|
||||||
wstring primaryDisplayAfterDeSerialize = pCalculatorDisplay->GetPrimaryDisplay();
|
wstring primaryDisplayAfterDeSerialize = pCalculatorDisplay->GetPrimaryDisplay();
|
||||||
|
@ -975,7 +975,7 @@ namespace CalculatorManagerTest
|
||||||
primaryDisplay = pCalculatorDisplay->GetPrimaryDisplay();
|
primaryDisplay = pCalculatorDisplay->GetPrimaryDisplay();
|
||||||
expressionDisplay = pCalculatorDisplay->GetExpression();
|
expressionDisplay = pCalculatorDisplay->GetExpression();
|
||||||
|
|
||||||
SerialzieAndDeSerialize();
|
SerializeAndDeSerialize();
|
||||||
|
|
||||||
memorizedNumbersAfterDeSerialize = pCalculatorDisplay->GetMemorizedNumbers();
|
memorizedNumbersAfterDeSerialize = pCalculatorDisplay->GetMemorizedNumbers();
|
||||||
primaryDisplayAfterDeSerialize = pCalculatorDisplay->GetPrimaryDisplay();
|
primaryDisplayAfterDeSerialize = pCalculatorDisplay->GetPrimaryDisplay();
|
||||||
|
@ -1016,7 +1016,7 @@ namespace CalculatorManagerTest
|
||||||
primaryDisplay = pCalculatorDisplay->GetPrimaryDisplay();
|
primaryDisplay = pCalculatorDisplay->GetPrimaryDisplay();
|
||||||
expressionDisplay = pCalculatorDisplay->GetExpression();
|
expressionDisplay = pCalculatorDisplay->GetExpression();
|
||||||
|
|
||||||
SerialzieAndDeSerialize();
|
SerializeAndDeSerialize();
|
||||||
|
|
||||||
memorizedNumbersAfterDeSerialize = pCalculatorDisplay->GetMemorizedNumbers();
|
memorizedNumbersAfterDeSerialize = pCalculatorDisplay->GetMemorizedNumbers();
|
||||||
primaryDisplayAfterDeSerialize = pCalculatorDisplay->GetPrimaryDisplay();
|
primaryDisplayAfterDeSerialize = pCalculatorDisplay->GetPrimaryDisplay();
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
||||||
|
|
||||||
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
|
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
|
||||||
<Namespace Name="DataClasses.ViewModels" Seralize="All" />
|
<Namespace Name="DataClasses.ViewModels" Serialize="All" />
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue