51Testing软件测试网 »
shuishou2408的个人空间
欢迎访问 shuishou2408 的个人空间
我的论坛主题
-
2007-03-31 09:25:06 / [单元测试与集成测试]
在PetShop4.0中针对BLL中一个业务方法进行测试,到是不能访问到静态的变量[TestMethod()]public void GetProductTest(){Product target = new Product();string productId = "FI - 01"; // TODO: 初始化为适当的值ProductInfo expected = new ProductInfo();ProductInfo actual;actual = target.GetProduct(productId);Assert.AreEqual(expected, actual, "PetShop.BLL.Product.GetProduct 未.
查看(1273)
评论(1)