????????????????????
???????????? ???????[ 2013/8/8 15:22:24 ] ????????
??????????沽???????????????????????棬???????????????????????????????????????????????????′???
/// <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>
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11