In my TestClass
I have 6 test methods and for each test method I am using the same DeploymentItem
and DataSource
. Defining each time with each TestMethod
is creating lots of redundancy in my code. Is it possible some how to define both of them one time for the complete TestClass
?
I tried in ClassInitialize
Attribute but could no achieve the the goal. Following is my DataSource
and DeploymentItem
detail:
[DataSource("CurrencyInfoList_DataSource")]
DeploymentItem("CoreUnitTests\\CurrencyUnitTests\\CurrencyTestData.xlsx")]