????????е????????????
???????????? ???????[ 2011/8/19 12:04:02 ] ????????
д???????????£?
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using WYEng.SQLServerDAL;
namespace WYEng.TestUnit
??{
[TestFixture]
public class TQL_Part
??{
SQLServerDAL.TQL_Part part;
WYEng.Model.TQL_Part p;
[SetUp]
public void CreateObject????
??{
part = new WYEng.SQLServerDAL.TQL_Part??????
p=new WYEng.Model.TQL_Part??????
}
[TearDown]
public void DeleteObject????
??{
part = null;
p=null;
}
[Test]
public void GetPaperPart????
??{
//????TaskId???????????????Part???????
p = part.GetPaperPart??1???? //???????
Assert.AreEqual??p.PartCode?? "6666"????
}
}
}????Nunit????????????????鷢???????
model???е?TQL_PArt??description?μ???????????
if ??value != null && value.Length > 50??
throw new ArgumentOutOfRangeException??"Invalid value for Description"?? value?? value.ToString????????
???????description??????Varchar??500????????????50?????????? if ??value != null && value.Length > 50??
?????????к????????????
??????
???·???
??????????????????
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