mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-23 06:25:19 -07:00
Fix InitializeMultipleConverterTest
This commit is contained in:
parent
3ad95ff7ea
commit
62533fb5da
1 changed files with 2 additions and 2 deletions
|
@ -685,7 +685,7 @@ TEST_METHOD(InitializeMultipleConverterTest)
|
||||||
viewModels[i] = ref new UnitConverterViewModel(unitConverterMocks[i]);
|
viewModels[i] = ref new UnitConverterViewModel(unitConverterMocks[i]);
|
||||||
IObservableVector<Category ^> ^ cats = viewModels[i]->Categories;
|
IObservableVector<Category ^> ^ cats = viewModels[i]->Categories;
|
||||||
VERIFY_ARE_EQUAL((UINT)1, unitConverterMocks[i]->m_getCategoriesCallCount);
|
VERIFY_ARE_EQUAL((UINT)1, unitConverterMocks[i]->m_getCategoriesCallCount);
|
||||||
VERIFY_ARE_EQUAL((UINT)3, cats->Size);
|
VERIFY_ARE_EQUAL((UINT)4, cats->Size);
|
||||||
// Verify that we match current category
|
// Verify that we match current category
|
||||||
VERIFY_IS_TRUE(CAT2 == viewModels[i]->CurrentCategory->GetModelCategory());
|
VERIFY_IS_TRUE(CAT2 == viewModels[i]->CurrentCategory->GetModelCategory());
|
||||||
}
|
}
|
||||||
|
@ -697,7 +697,7 @@ TEST_METHOD(InitializeMultipleConverterTest)
|
||||||
// Verify that the instance properties were set independently
|
// Verify that the instance properties were set independently
|
||||||
for (int i = 0; i < 2; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
VERIFY_ARE_EQUAL((UINT)3, viewModels[i]->Categories->Size);
|
VERIFY_ARE_EQUAL((UINT)4, viewModels[i]->Categories->Size);
|
||||||
VERIFY_ARE_EQUAL((UINT)3, viewModels[i]->Units->Size);
|
VERIFY_ARE_EQUAL((UINT)3, viewModels[i]->Units->Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue