Good idea to parameterize the test! A nicer way to do what you are achieving here are value-parameterized tests. https://code.google.com/p/googletest/wiki/AdvancedGuide#Value_Parameterized_Tests