-- -- tests/actions/vstudio/vc2010/test_header.lua -- Validate generation of the project file header block. -- Copyright (c) 2011 Jason Perkins and the Premake project -- T.vstudio_vs2010_header = { } local suite = T.vstudio_vs2010_header local vc2010 = premake.vstudio.vc2010 -- -- Setup -- local sln, prj function suite.setup() _ACTION = 'vs2010' sln = test.createsolution() premake.bake.buildconfigs() prj = premake.solution.getproject(sln, 1) sln.vstudio_configs = premake.vstudio.buildconfigs(sln) end -- -- Tests -- function suite.On2010_WithNoTarget() vc2010.header() test.capture [[ ]] end function suite.On2010_WithTarget() vc2010.header("Build") test.capture [[ ]] end