Author: Userr_ | Posted on: 8/14/2008 4:30:27 PM | Views : 542


Hello,

 

I'm new to Unit testing,I need help with writing a test for this method?? can anyone give me some idea?!

 

 

 
public void Withdraw(decimal amount)
{

Balance -= amount;
transaction = new Transaction();
transaction.Day = DateTime.Now.ToString("dd-MM-yy");
transaction.Type = Transaction.TransactionType.Withdraw;
transaction.Amount = -amount;
transaction.Total = Balance;
transactionList.Add(transaction);


}  ...

Go to the complete details ...