单元测试用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()

 

posted on 2014-12-02 21:17  无法显示此网页  阅读(187)  评论(0编辑  收藏  举报

导航