mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
formatting
This commit is contained in:
parent
a4f78bc66f
commit
a9d4e52128
4 changed files with 17 additions and 18 deletions
|
@ -215,7 +215,7 @@ vector<wstring> UnitConverter::StringToVector(const wstring& w, const wchar_t* d
|
||||||
}
|
}
|
||||||
return serializedTokens;
|
return serializedTokens;
|
||||||
}
|
}
|
||||||
wstring UnitConverter::UnitToString(const Unit& u, const wchar_t * delimiter)
|
wstring UnitConverter::UnitToString(const Unit& u, const wchar_t* delimiter)
|
||||||
{
|
{
|
||||||
wstringstream out(wstringstream::out);
|
wstringstream out(wstringstream::out);
|
||||||
out << Quote(std::to_wstring(u.id)) << delimiter << Quote(u.name) << delimiter << Quote(u.abbreviation) << delimiter
|
out << Quote(std::to_wstring(u.id)) << delimiter << Quote(u.name) << delimiter << Quote(u.abbreviation) << delimiter
|
||||||
|
|
|
@ -1152,7 +1152,7 @@ void StandardCalculatorViewModel::OnMemoryClear(_In_ Object ^ memoryItemPosition
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void StandardCalculatorViewModel::OnPropertyChanged(String^ propertyname)
|
void StandardCalculatorViewModel::OnPropertyChanged(String ^ propertyname)
|
||||||
{
|
{
|
||||||
if (propertyname == IsScientificPropertyName)
|
if (propertyname == IsScientificPropertyName)
|
||||||
{
|
{
|
||||||
|
|
|
@ -843,10 +843,10 @@ TEST_METHOD(TestSupplementaryResultsWhimsicalUnits)
|
||||||
}
|
}
|
||||||
// Last item
|
// Last item
|
||||||
VERIFY_IS_TRUE(vm.SupplementaryResults->GetAt(0)->Unit->GetModelUnit() == UNITWHIMSY);
|
VERIFY_IS_TRUE(vm.SupplementaryResults->GetAt(0)->Unit->GetModelUnit() == UNITWHIMSY);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_METHOD(TestOnPaste)
|
TEST_METHOD(TestOnPaste)
|
||||||
{
|
{
|
||||||
shared_ptr<UnitConverterMock> mock = make_shared<UnitConverterMock>();
|
shared_ptr<UnitConverterMock> mock = make_shared<UnitConverterMock>();
|
||||||
VM::UnitConverterViewModel vm(mock);
|
VM::UnitConverterViewModel vm(mock);
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,6 @@ namespace CalculatorUnitTests
|
||||||
UINT m_sendCommandCallCount;
|
UINT m_sendCommandCallCount;
|
||||||
UINT m_setVMCallbackCallCount;
|
UINT m_setVMCallbackCallCount;
|
||||||
|
|
||||||
|
|
||||||
UCM::Category m_curCategory;
|
UCM::Category m_curCategory;
|
||||||
UCM::Unit m_curFrom;
|
UCM::Unit m_curFrom;
|
||||||
UCM::Unit m_curTo;
|
UCM::Unit m_curTo;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue