??????????沽???????????????????????棬???????????????????????????????????????????????????′???

/// <summary>
///Add ?????
///</summary>
[DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV"??
"|DataDirectory|\number.csv"??
"number#csv"??
DataAccessMethod.Sequential)??  //??????????????????????????д????????????沽???????????д??????“????????·??”??
DeploymentItem("MyTest\number.csv")??
TestMethod()]
public void AddTest1()
{
Program target = new Program();
int numberOne = Convert.ToInt32(this.testContextInstance.DataRow["One"]);????//????????
int numberTwo = Convert.ToInt32(this.testContextInstance.DataRow["Two"]); ;
int expected = Convert.ToInt32(this.testContextInstance.DataRow["Except"]);
int actual = target.Add(numberOne?? numberTwo);
Assert.AreEqual(expected?? actual);
}

?????????????????????????????????·???????????????е?????????????????????????????????????????????????????????????????????????????????

???????CSV??????Excel??????????????????????????????????????????????????????????????????ü??±???????????

?????????XML??????????

?????????÷???????????????????????????XML????????????????

<table>??//?????????????????????????????????????
<my>
<price>1</price>
<number>1</number>
<total>1</total>
</my>
<my>
<price>2</price>
<number>2</number>
<total>4</total>
</table>

??????????????????????Convert.ToInt32(this.testContextInstance.DataRow["price"]) ?????????????????????????????????????????????????????????????????????????

??????????????????????????????????????????????????????·??????????????????

????7.???????????? → “Mole”????

???????????л????????Tian Mi?????????????????????????лл????????????

????“Mole”?????????????http://www.kuaipan.cn/index.php?ac=file&oid=29568238492847207

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

???????????????????????????飬???????????Щ??????????????????????????????????????

??????????????????????????????????????????????????????????????????????????????????????y?????Mole?????????????????????????????????????????????????????????????????????????????

?????????????????????????????????http://www.cnblogs.com/hwade/archive/2010/11/26/Moles.html??????????????????Щ??д??????????????С????

?????????“Moles”???????????????????????????????????????????????????????????ò?????????

???????裺??????Moles???????????????XML?????????????????????????磺

<Moles  xmlns=http://schemas.microsoft.com/moles/2010/  DisableCache="true" >  //???????DisableCache = "true"?????????????????????????????????????????Ok???
<Assembly Name="Foundation.FinanceManagement.BusinessService"  />
</Moles>