I am trying to use microsoft unit tests for native code, however after writing basic tests i have run into a problem: i could not find how to make test methods with parameters.
When searching for the topics, i found some ways to add such methods, namely to write data-driven tests (for example, http://msdn.microsoft.com/en-us/library/ms182527.aspx). However i am at loss as to how to use it together with native C++ tests.
As far as i could determine, no TEST_METHOD
macro exists for functions with parameters, no macro for 'DataSource' attribute exists etcetera.
Is there an example of setting up data-driven test of native c++ code using MsTest?
Data Driven tests are not supported in Native C++ MSTest Framework.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With