Tag Archives: MS Test
MS-Test DeploymentItem Attribute……..Aaaaaaaagh!
We have a policy of using MS-Test, although that is overdue for a serious review. So it turns out you can use the deployment item attribute…. [TestMethod] [DeploymentItem("UnitTest.MyProject.TestData.xml")] public void GetAllStatuses() {…} ….As long as you don’t provide a constant… public const string XMLCONFIGFILE = “UnitTest.MyProject.TestData.xml”; [TestMethod] [DeploymentItem(TestHelper.XMLCONFIGFILE)] public void GetAllStatuses() {…} It just ignores [...]
2
Login