M
Morales1235
Guest
Hello,
I try to figure out if these is any possibility to run the same test methods (or whole class) with different setup without repeating writing those test?
pseudocode of current situation:
Settings GetDefaultSettings();
TEST_CLASS( MyTest )
{
static Settings m_settings = GetDefaultSettings;
TEST_METHOD(Method1)
{
DoSthWithSettings();
}
}
I would like to test few different settings sets, but don't want to write different TEST_METHODs for each settings set. How can I run Method1 multiple times, but with different settings?
Using VS2012, Native Unit Test Framework
Continue reading...
I try to figure out if these is any possibility to run the same test methods (or whole class) with different setup without repeating writing those test?
pseudocode of current situation:
Settings GetDefaultSettings();
TEST_CLASS( MyTest )
{
static Settings m_settings = GetDefaultSettings;
TEST_METHOD(Method1)
{
DoSthWithSettings();
}
}
I would like to test few different settings sets, but don't want to write different TEST_METHODs for each settings set. How can I run Method1 multiple times, but with different settings?
Using VS2012, Native Unit Test Framework
Continue reading...