單元測試用excel connstr

 [TestMethod()]
        [DeploymentItem("test.xlsx")]
        [DataSource("System.Data.Odbc", @"Dsn=Excel Files;Driver=Microsoft Excel Driver (*.xlsx)};DriverId=790;Dbq=.\test.xlsx", "Sheet1$", Microsoft.VisualStudio.TestTools.UnitTesting.DataAccessMethod.Sequential)]
        public void MyTestMethod2()
相關文章
相關標籤/搜索