avatar
L*r
1
抛砖引玉
我在重写MS Petshop.取名叫XPetshop.由于我是test driven programming. Here is the
part of the CS Unit class I wrote.
using System;
using csUnit;
using XPetshop.BLL;
using XPetshop.Model;
namespace UTest
{
///
/// [TestFixture]这个attribute说明这个class是Test类。
///

[TestFixture]
public class TestBLL
{
private Customer customer1;
private Account ac;
//这个attribute说明Initial要在其他test funtion之前执行
[SetUp]
public void Initial()
{
//这里的customer是我Unit test的
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。