Native Unit Test with multiple setups

  • Thread starter Thread starter Morales1235
  • Start date Start date
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...
 
Back
Top