public static void Main()
var tests = new BankAccountTests();
tests.InitialBalance_ShouldBeZero();
Console.WriteLine("All unit tests are OK");
public decimal Balance { get; private set; }
public void Deposit(decimal amount)
throw new ArgumentException("Deposit amount must be positive.");
public void Withdraw(decimal amount)
throw new InvalidOperationException("Insufficient funds.");
throw new ArgumentException("Withdrawal amount must be positive.");
public class BankAccountTests
public void InitialBalance_ShouldBeZero()
var account = new BankAccount();
var balance = account.Balance;
Assert.That(balance == 0);