cs unit 范例# DotNet - 窗口里的风景
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的
我在重写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的