????3?????vs2010????????“????”——"????"——“???????”????2??????????????????????????????“????”???????????

?????????????????????????????access????????????????????????????????????????????????????′???


 [DataSource("System.Data.OleDb"?? "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:\crrGov\crrGovernment\TestProject\TopicBLL\XZBLL\XZNewsObject.accdb"?? "UpdateNewsObject"?? DataAccessMethod.Sequential)?? TestMethod()]???????????????и????

/// <summary>
        ///UpdateNews ?????
        ///</summary>
        [DataSource("System.Data.OleDb"?? "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:\crrGov\crrGovernment\TestProject\TopicBLL\XZBLL\XZNewsObject.accdb"?? "UpdateNewsObject"?? DataAccessMethod.Sequential)?? TestMethod()]
        public void UpdateNewsTest()
        {
            XZNewsObject target = new XZNewsObject();
            target.News_ID = Convert.ToInt32(TestContext.DataRow["News_ID"]);// TODO: ????????????
            target.News_Author = Convert.ToString(TestContext.DataRow["Author"]);
            target.News_Content = Convert.ToString(TestContext.DataRow["Content"]);
            target.News_Img = Convert.ToString(TestContext.DataRow["Img"]);
            target.News_Source = Convert.ToString(TestContext.DataRow["Source"]);
            target.News_Time = Convert.ToDateTime(TestContext.DataRow["Time"]);
            target.News_Title = Convert.ToString(TestContext.DataRow["Title"]);
            target.News_File = Convert.ToString(TestContext.DataRow["File"]);
            bool expected = Convert.ToBoolean(TestContext.DataRow["EX"]); // TODO: ????????????
            bool actual;
            actual = target.UpdateNews();
            Assert.AreEqual(expected?? actual);
            Assert.Inconclusive("???????????????????");
        }
 
????4??

????5????????????д????????????д??????????????????????д??????????????????д??????bug

???????????????????????????????????????