使用VisualStudio2005TeamSystem进行单元测试[15]

发表于:2010-05-13来源:作者:点击数: 标签:单元

  使用VisualStudio2005TeamSystem进行单元测试[15]   软件测试

  {

  public class BankAclearcase/" target="_blank" >ccount

  {

  // Properties

  private float _currentBalance;

  public float CurrentBalance

  {

  get { return _currentBalance; }

  }

  // Constructors

  public BankAccount(float initialBalance)

  {

  this._currentBalance = initialBalance;

  }

  // Methods

  public void DepositMoney(float depositAmount)

  {

  this._currentBalance += depositAmount;

  }

  public void MakePayment(float paymentAmount)

原文转自:http://www.ltesting.net